Skip to content

Commit 8e7b162

Browse files
chore(ci): [SECURITY-936] Enable CodeQL scans for GitHub workflow+customise for existing flows (#9961)
* Add CodeQL workflow for GitHub Actions * inlcude exisitng config codeql.yml * fix error on codeql.yml * Update codeql.yml
1 parent ffb0746 commit 8e7b162

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: "CodeQL Scan: Actions+existing"
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
jobs:
11+
analyze:
12+
name: Analyze workflows and JS/TS
13+
runs-on: ubuntu-latest
14+
permissions:
15+
actions: read
16+
contents: read
17+
security-events: write
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Initialize CodeQL
23+
uses: github/codeql-action/init@v3
24+
with:
25+
languages: actions, javascript-typescript
26+
27+
- name: Autobuild and analyze
28+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)