-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added workflow for cloudformation linter and security scan (#83)
- Loading branch information
1 parent
ebc9389
commit bb25820
Showing
5 changed files
with
55 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: cloudformation-linter | ||
on: | ||
workflow_call: | ||
inputs: | ||
cf_file_path: | ||
required: true | ||
type: string | ||
description: 'path of cloudformation template.' | ||
|
||
jobs: | ||
cloudformation-linter: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: cfn-lint-action | ||
uses: ScottBrenner/cfn-lint-action@v2 | ||
with: | ||
command: cfn-lint -t ${{ inputs.cf_file_path }} | ||
|
||
- name: cfn security checks | ||
uses: minchao/cfn-nag-action@v0.1 | ||
with: | ||
args: '--input-path ${{ inputs.cf_file_path }}' | ||
... |
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,8 @@ | ||
--- | ||
name: YAML-LINTER | ||
on: [pull_request] | ||
|
||
jobs: | ||
YAML-LINTER: | ||
uses: clouddrove/github-shared-workflows/.github/workflows/ymllint.yml@master | ||
... |
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