Skip to content

chore: perform CodeQL scan on actions #6309

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
33 changes: 26 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ on:
schedule:
- cron: '53 3 * * 0'

env:
LANGUAGE: 'java-kotlin'

jobs:
analyze:
name: Analyze
analyzeJava:
name: AnalyzeJava
runs-on: 'ubuntu-latest'
permissions:
actions: read
Expand All @@ -35,13 +32,35 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ env.LANGUAGE }}
languages: 'java-kotlin'

- name: Build
run: mvn --batch-mode --update-snapshots verify

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{env.LANGUAGE}}"
category: "/language:java-kotlin"

analyzeActions:
name: AnalyzeActions
runs-on: 'ubuntu-latest'
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'actions'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:actions"
...
Loading