-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b014d90
commit 8537ff1
Showing
4 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# NOTE: You must enable code scanning and analysis on your repository | ||
name: "cfn-guard SARIF analysis" | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: '45 15 * * 4' | ||
|
||
jobs: | ||
sarif: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: public.ecr.aws/aws-cloudformation/cloudformation-guard:latest | ||
permissions: | ||
security-events: write | ||
actions: read | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run cfn-guard | ||
# Replace these paths with your own | ||
run: /usr/src/cloudformation-guard/cfn-guard validate -r ./path/to/rules/directory_or_file/ -d ./path/to/data/directory_or_file/ --output-format sarif --show-summary none --structured > results.sarif || true | ||
- uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: results.sarif |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.