Skip to content

Commit 83bc063

Browse files
authored
chore: perform CodeQL scan on actions (TheAlgorithms#6309)
1 parent 13d8a28 commit 83bc063

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@ on:
1010
schedule:
1111
- cron: '53 3 * * 0'
1212

13-
env:
14-
LANGUAGE: 'java-kotlin'
15-
1613
jobs:
17-
analyze:
18-
name: Analyze
14+
analyzeJava:
15+
name: AnalyzeJava
1916
runs-on: 'ubuntu-latest'
2017
permissions:
2118
actions: read
@@ -35,13 +32,35 @@ jobs:
3532
- name: Initialize CodeQL
3633
uses: github/codeql-action/init@v3
3734
with:
38-
languages: ${{ env.LANGUAGE }}
35+
languages: 'java-kotlin'
3936

4037
- name: Build
4138
run: mvn --batch-mode --update-snapshots verify
4239

4340
- name: Perform CodeQL Analysis
4441
uses: github/codeql-action/analyze@v3
4542
with:
46-
category: "/language:${{env.LANGUAGE}}"
43+
category: "/language:java-kotlin"
44+
45+
analyzeActions:
46+
name: AnalyzeActions
47+
runs-on: 'ubuntu-latest'
48+
permissions:
49+
actions: read
50+
contents: read
51+
security-events: write
52+
53+
steps:
54+
- name: Checkout repository
55+
uses: actions/checkout@v4
56+
57+
- name: Initialize CodeQL
58+
uses: github/codeql-action/init@v3
59+
with:
60+
languages: 'actions'
61+
62+
- name: Perform CodeQL Analysis
63+
uses: github/codeql-action/analyze@v3
64+
with:
65+
category: "/language:actions"
4766
...

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy