Skip to content

Commit

Permalink
use an exhaustive codeql configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Dec 26, 2024
1 parent d722be8 commit 60d04c1
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,15 @@
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [master]
branches: [master, v2.dev, v3.dev]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [master, v2.dev, v3.dev]
schedule:
- cron: '0 0 * * 4'

permissions:
actions: read
contents: read
pull-requests: read
security-events: write
permissions: read-all

env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
Expand All @@ -28,6 +22,15 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
pull-requests: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ actions, java ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
Expand Down Expand Up @@ -56,10 +59,25 @@ jobs:
with:
java: ${{ env.JAVA_VERSION }}
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Initialize CodeQL
- name: Initialize CodeQL (Actions)
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
if: ${{ matrix.language == 'actions' }}
with:
languages: actions
- name: Initialize CodeQL (Java)
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
if: ${{ matrix.language == 'java' }}
with:
languages: java
queries: +security-and-quality,security-extended,security-experimental
languages: java-kotlin
packs: >
+codeql/java-queries:.
githubsecuritylab/codeql-java-queries,
githubsecuritylab/codeql-java-extensions,
githubsecuritylab/codeql-java-library-sources,
githubsecuritylab/codeql-java-queries:suites/java-local.qls
config: |
threat-models: local
- name: Autobuild
uses: github/codeql-action/autobuild@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
- name: Perform CodeQL Analysis
Expand Down

0 comments on commit 60d04c1

Please sign in to comment.