Skip to content

Commit d652f70

Browse files
Tune CodeQL settings
Signed-off-by: Viacheslav Kudinov <[email protected]>
1 parent 519e99a commit d652f70

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: GitHub Actions CI
22

3+
34
on:
45
push:
56
branches: [main]
@@ -11,7 +12,7 @@ jobs:
1112
env:
1213
GITHUB_TEST_ORGANIZATION: 'kfcampbell-terraform-provider'
1314
steps:
14-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15+
- uses: actions/[email protected]
1516
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
1617
with:
1718
go-version-file: 'go.mod'

.github/workflows/codeql.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CodeQL
1+
name: CodeQL new
22

33
on:
44
push:
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
analyze:
14-
name: Analyze
14+
name: Analyze (${{ matrix.language }})
1515
runs-on: ubuntu-latest
1616
permissions:
1717
actions: read
@@ -21,7 +21,21 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
language: [ 'go' ]
24+
include:
25+
- language: actions
26+
build-mode: none
27+
queries: security-and-quality
28+
config: |
29+
paths:
30+
- ".github/workflows"
31+
paths-ignore:
32+
- "**/*.md"
33+
- language: go
34+
build-mode: autobuild
35+
queries: ''
36+
config: |
37+
paths-ignore:
38+
- "**/*.md"
2539
2640
steps:
2741
- name: Checkout repository
@@ -37,6 +51,9 @@ jobs:
3751
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
3852
with:
3953
languages: ${{ matrix.language }}
54+
build-mode: ${{ matrix['build-mode'] }}
55+
queries: ${{ matrix.queries }}
56+
config: ${{ matrix.config }}
4057

4158
- name: Autobuild
4259
uses: github/codeql-action/autobuild@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ website/node_modules
2929
testdata/
3030
website/vendor
3131
terraform-provider-github
32+
.tool-versions
3233

3334
# Test exclusions
3435
!command/test-fixtures/**/*.tfstate

0 commit comments

Comments
 (0)