Bump anchore/sbom-action from 0.19.0 to 0.20.0 #106
This file contains hidden or 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
# https://kubesec.io/ | |
# https://github.com/controlplaneio/kubesec | |
# https://github.com/controlplaneio/kubesec-action | |
name: SAST Kubesec Scanner | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '18 8 * * 6' | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
jobs: | |
kubesec-scan-1: | |
name: Kubesec Scan 1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run kubesec scanner (critical-double.yaml) | |
uses: controlplaneio/kubesec-action@43d0ddff5ffee89a6bb9f29b64cd865411137b14 | |
with: | |
input: manifests/critical-double.yaml # specify configuration file to scan here | |
format: template | |
template: manifests/sarif.tpl | |
output: kubesec-results.sarif | |
exit-code: "0" | |
- name: Upload Kubesec scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: kubesec-results.sarif | |
kubesec-scan-2: | |
name: Kubesec Scan 2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run kubesec scanner (score-5-pod-serviceaccount.yaml) | |
uses: controlplaneio/kubesec-action@43d0ddff5ffee89a6bb9f29b64cd865411137b14 | |
with: | |
input: manifests/score-5-pod-serviceaccount.yaml # specify configuration file to scan here | |
format: template | |
template: manifests/sarif.tpl | |
output: kubesec-results.sarif | |
exit-code: "0" | |
- name: Upload Kubesec scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: kubesec-results.sarif |