Skip to content

Commit 62de76a

Browse files
authored
chore: enable codeql for actons (#4395)
1 parent 32f3ad6 commit 62de76a

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/codeql.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
include:
25-
- language: javascript-typescript
26-
build-mode: none
24+
language: ['javascript-typescript', 'actions']
25+
2726
steps:
2827
- name: Checkout repository
2928
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3029

3130
# Initializes the CodeQL tools for scanning.
3231
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
32+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
3433
with:
3534
languages: ${{ matrix.language }}
36-
build-mode: ${{ matrix.build-mode }}
35+
build-mode: none
3736

3837
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
38+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
4039
with:
4140
category: "/language:${{matrix.language}}"

.github/workflows/lambda.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- 'lambdas/**'
99
- '.github/workflows/lambda.yml'
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
runs-on: ubuntu-latest

.github/workflows/packer-build.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ on:
88
- "images/**"
99
- ".github/workflows/packer-build.yml"
1010
- "module/runners/templates/**"
11+
permissions:
12+
contents: read
13+
1114
env:
1215
AWS_REGION: eu-west-1
1316
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
1418
jobs:
1519
verify_packer:
1620
name: Verify packer

.github/workflows/terraform.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
key: tflint-${{ hashFiles('.tflint.hcl') }}
114114
- if: contains(matrix.terraform, '1.3.')
115115
name: Setup TFLint
116-
uses: terraform-linters/setup-tflint@v4
116+
uses: terraform-linters/setup-tflint@8093687ecc9dcbfa88d07c103ad4176739a7287e # v4.1.0
117117
with:
118118
github_token: ${{ secrets.GITHUB_TOKEN }}
119119
- if: contains(matrix.terraform, '1.3.')
@@ -168,7 +168,7 @@ jobs:
168168
key: tflint-${{ hashFiles('.tflint.hcl') }}
169169
- if: contains(matrix.terraform, '1.5.')
170170
name: Setup TFLint
171-
uses: terraform-linters/setup-tflint@v4
171+
uses: terraform-linters/setup-tflint@8093687ecc9dcbfa88d07c103ad4176739a7287e # v4.1.0
172172
with:
173173
github_token: ${{ secrets.GITHUB_TOKEN }}
174174
- if: contains(matrix.terraform, '1.5.')

0 commit comments

Comments
 (0)