Skip to content

Commit a43b9c7

Browse files
committed
chore: address codeql security warning
1 parent 67cb663 commit a43b9c7

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/lambda.yml

Lines changed: 3 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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)