Skip to content

Commit 2542aa1

Browse files
authored
github/workflow: fix codeql workflow syntax (#114)
1 parent f5d35a3 commit 2542aa1

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/codeql.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CodeQL
1+
name: "CodeQL"
22

33
on:
44
push:
@@ -15,24 +15,22 @@ jobs:
1515
name: Analyze
1616
runs-on: ubuntu-20.04
1717

18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
1823
strategy:
1924
fail-fast: false
2025

2126
steps:
22-
- name: Checkout code
23-
uses: actions/checkout@main
24-
with:
25-
fetch-depth: 2
26-
27-
- name: Install Go
28-
uses: actions/setup-go@main
29-
with:
30-
go-version: 1.16.x
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
3129

3230
- name: Initialize CodeQL
3331
uses: github/codeql-action/init@v1
3432
with:
35-
languages: go
33+
languages: 'go'
3634

3735
- name: Perform CodeQL Analysis
3836
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)