Skip to content

aws-cdk: make "cdk notices" show only unacknowledged notices #23078

@enummela-diligent

Description

@enummela-diligent

Describe the feature

Make it possible for cdk notices to show only the unacknowledged notices. Currently it lists "the notices that are relevant to the current CDK repository, regardless of context flags or notices that have been acknowledged" [link].

Use Case

Checking if there are any unacknowledged notices in CI checks. Example package.json:

{
  "scripts": {
    "test": "jest",
    "notices": "notices=$(cdk notices --unacknowledged-only); [ -z \"$notices\" ]",
    "ci": "npm test && npm run notices"
  }
}

Proposed Solution

One possible way to implement could be adding an --unacknowledged-only flag.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.50.0 (build 4c11af6)

Environment details (OS name and version, etc.)

macOS Monterey 12.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalitycliIssues related to the CDK CLIeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions