Use version range for CodeQL action (#23377)

This commit is contained in:
Jon Koops 2023-09-20 13:05:34 +02:00 committed by GitHub
parent 59160e50e2
commit 48e4e973a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2.21.6 uses: github/codeql-action/init@v2
with: with:
languages: java languages: java
@ -54,7 +54,7 @@ jobs:
uses: ./.github/actions/build-keycloak uses: ./.github/actions/build-keycloak
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2.21.6 uses: github/codeql-action/analyze@v2
with: with:
wait-for-processing: true wait-for-processing: true
env: env:
@ -72,7 +72,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2.21.6 uses: github/codeql-action/init@v2
env: env:
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"finalize":["--no-run-unnecessary-builds"]}}' CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"finalize":["--no-run-unnecessary-builds"]}}'
with: with:
@ -80,7 +80,7 @@ jobs:
source-root: themes/src/main/ source-root: themes/src/main/
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2.21.6 uses: github/codeql-action/analyze@v2
with: with:
wait-for-processing: true wait-for-processing: true
env: env:

View file

@ -27,7 +27,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Upload Quarkus scanner results to GitHub - name: Upload Quarkus scanner results to GitHub
uses: github/codeql-action/upload-sarif@v2.21.6 uses: github/codeql-action/upload-sarif@v2
with: with:
sarif_file: quarkus-report.sarif sarif_file: quarkus-report.sarif
category: snyk-quarkus-report category: snyk-quarkus-report
@ -41,7 +41,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Upload Operator scanner results to GitHub - name: Upload Operator scanner results to GitHub
uses: github/codeql-action/upload-sarif@v2.21.6 uses: github/codeql-action/upload-sarif@v2
with: with:
sarif_file: operator-report.sarif sarif_file: operator-report.sarif
category: snyk-operator-report category: snyk-operator-report

View file

@ -31,6 +31,6 @@ jobs:
timeout: 15m timeout: 15m
- name: Upload Trivy scan results to GitHub Security tab - name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2.21.6 uses: github/codeql-action/upload-sarif@v2
with: with:
sarif_file: trivy-results.sarif sarif_file: trivy-results.sarif