Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
queries: security-extended,security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
10 changes: 5 additions & 5 deletions .github/workflows/devsecops-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
[ -f semgrep.sarif ] || echo '{"version":"2.1.0","runs":[{"tool":{"driver":{"name":"semgrep"}},"results":[]}]}' > semgrep.sarif
- name: Upload SARIF to code scanning
if: always()
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: semgrep.sarif
category: semgrep
Expand Down Expand Up @@ -176,7 +176,7 @@
continue-on-error: true
- name: Upload SARIF to code scanning (Trivy fs)
if: always()
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: trivy-fs.sarif
category: trivy-fs
Expand Down Expand Up @@ -312,7 +312,7 @@
./conftest test sample-app/Dockerfile --parser dockerfile --policy policy/opa --output json > conftest-dockerfile.json || true
- name: Upload SARIF to code scanning (Checkov)
if: always()
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: checkov.sarif
category: checkov
Expand Down Expand Up @@ -457,7 +457,7 @@
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3

Check warning on line 460 in .github/workflows/devsecops-pipeline.yml

View workflow job for this annotation

GitHub Actions / IaC (Checkov · KICS · Trivy config · kube-linter · Conftest/OPA)

[LOW] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
- name: Sign image (keyless / Sigstore) and attach SBOM attestation
if: github.event_name != 'pull_request'
run: |
Expand All @@ -473,13 +473,13 @@
push-to-registry: true
- name: Upload SARIF to code scanning (Trivy image · Hadolint)
if: always()
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: trivy-image.sarif
category: trivy-image
- name: Upload SARIF to code scanning (Hadolint)
if: always()
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: hadolint.sarif
category: hadolint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openssf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
scorecard-results.sarif
scorecard-results.json
retention-days: 90
- uses: github/codeql-action/upload-sarif@v3
- uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: scorecard-results.sarif
category: scorecard
Loading