Skip to content

Commit c7812c0

Browse files
authored
Merge pull request #3 from yevh/add-codeql-workflow-actions-scan
Add actions scanning and community pack in codeql-analysis.yml
2 parents 2669aae + 6ef3f5f commit c7812c0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CodeQL SAST
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
schedule:
8+
- cron: "23 9 * * 3"
9+
workflow_dispatch:
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: ["go", "actions"]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a #v2.20.3
31+
with:
32+
languages: ${{ matrix.language }}
33+
queries: security-and-quality
34+
packs: githubsecuritylab/codeql-go-queries
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a #v2.20.3
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a #v2.20.3

0 commit comments

Comments
 (0)