-
Notifications
You must be signed in to change notification settings - Fork 0
Added kics integration #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,38 @@ | |
|
|
||
| jobs: | ||
|
|
||
| infra_scan: | ||
| name: 'Infra Scan' | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| # required for all workflows | ||
| security-events: write | ||
| contents: 'read' | ||
|
|
||
| steps: | ||
| # Checkout the repository to the GitHub Actions runner | ||
| - name: Checkout | ||
| uses: 'actions/checkout@v4' | ||
|
|
||
| - name: Make Infra Scan Directory | ||
| run: mkdir -p infra_scan_results | ||
|
|
||
| - name: run kics Scan | ||
| uses: Checkmarx/[email protected] | ||
|
Check warning on line 34 in .github/workflows/dbac-deploy.yaml
|
||
| with: | ||
| path: '.github/workflows/' | ||
| ignore_on_exit: results #dont fail on results (overwrite default behaviour fails) | ||
| output_path: 'infra_scan_results' # when provided with a directory on output_path it will generate the specified reports file named 'results.{extension}' | ||
| output_formats: 'json,sarif' | ||
|
|
||
| - name: Upload SARIF file | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
|
Check warning on line 42 in .github/workflows/dbac-deploy.yaml
|
||
|
||
| with: | ||
| sarif_file: infra_scan_results/results.sarif | ||
|
|
||
| docs: | ||
| needs: [infra_scan] | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
|
|
@@ -25,7 +56,7 @@ | |
| ref: ${{ github.event.pull_request.head.ref }} # Use the PR branch for checkout | ||
|
|
||
| - name: Render terraform docs inside the README.md and push changes back to PR branch | ||
| uses: terraform-docs/[email protected] | ||
|
Check warning on line 59 in .github/workflows/dbac-deploy.yaml
|
||
| with: | ||
| working-dir: . | ||
| output-file: README.md | ||
|
|
@@ -34,7 +65,7 @@ | |
|
|
||
| dbac_deploy: | ||
| runs-on: DbaC | ||
| needs: [docs] | ||
| needs: [infra_scan, docs] | ||
|
|
||
| defaults: | ||
| run: | ||
|
|
@@ -42,7 +73,7 @@ | |
|
|
||
| permissions: | ||
| contents: 'read' | ||
| id-token: 'write' | ||
| pull-requests: 'read' | ||
|
|
||
| steps: | ||
|
|
@@ -51,7 +82,7 @@ | |
| uses: 'actions/checkout@v4' | ||
|
|
||
| - name: Detect changes | ||
| uses: dorny/paths-filter@v3 | ||
|
Check warning on line 85 in .github/workflows/dbac-deploy.yaml
|
||
| id: detect-changes | ||
| with: | ||
| filters: | | ||
|
|
@@ -62,7 +93,6 @@ | |
| - 'entrypoint.tf' | ||
| - 'modules/**' | ||
| - .github/workflows/dbac-deploy.yaml | ||
| continue-on-error: false | ||
|
|
||
| # Install Node.js | ||
| - name: Setup Node.js | ||
|
|
@@ -72,7 +102,7 @@ | |
|
|
||
| # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token | ||
| - name: "Setup Terraform" | ||
| uses: hashicorp/setup-terraform@v3 | ||
|
Check warning on line 105 in .github/workflows/dbac-deploy.yaml
|
||
| with: | ||
| terraform_version: "1.9.0" | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.