Skip to content

Commit ea6507d

Browse files
0x2b3bfa0dacbd
andauthored
Add CodeQL workflow (#552)
* Add CodeQL workflow * “Helicalize” * Run only on schedule It's too slow for pull requests * Trigger on `pull_request` It's a pity it takes time, because it's useful * Add concurrency option * Use the terser `github.ref_name` Co-authored-by: Daniel Barnes <dabarnes2b@gmail.com> Co-authored-by: Daniel Barnes <dabarnes2b@gmail.com>
1 parent 21e6b9b commit ea6507d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CodeQL
2+
on:
3+
pull_request:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref_name }}
8+
cancel-in-progress: true
9+
jobs:
10+
analyze:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: github/codeql-action/init@v2
19+
with:
20+
languages: go
21+
- uses: github/codeql-action/autobuild@v2
22+
- uses: github/codeql-action/analyze@v2
23+
env:
24+
CODEQL_EXTRACTOR_GO_BUILD_TRACING: on

0 commit comments

Comments
 (0)