Skip to content

Commit ea680e0

Browse files
authored
fix: Use pinned version for all the pending tasks (#6410)
* fix: Use pinned version for all the pending tasks Signed-off-by: Jorge Turrado <[email protected]> * update tokens Signed-off-by: Jorge Turrado <[email protected]> --------- Signed-off-by: Jorge Turrado <[email protected]> Signed-off-by: Jorge Turrado <[email protected]>
1 parent 2dc255b commit ea680e0

12 files changed

+57
-20
lines changed

.github/workflows/auto-add-issues-to-project.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
issues:
44
types:
55
- opened
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
track_issue:
812
runs-on: ubuntu-latest

.github/workflows/fossa.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
fossa-key: 9e722f2c8904586d61f97f0bf05a99e4 # This is a public key only for pushing, it's safe here
1114

@@ -24,13 +27,13 @@ jobs:
2427
- run: go version
2528
- name: Get branch name
2629
id: branch-name
27-
uses: tj-actions/branch-names@v8
28-
- uses: fossas/fossa-action@main
30+
uses: tj-actions/branch-names@6871f53176ad61624f978536bbf089c574dc19a2 # v8.0.1
31+
- uses: fossas/fossa-action@09bcf127dc0ccb4b5a023f6f906728878e8610ba # v1.4.0
2932
name: Scanning with FOSSA
3033
with:
3134
api-key: ${{ env.fossa-key }}
3235
branch: ${{ steps.branch-name.outputs.current_branch }}
33-
- uses: fossas/fossa-action@main
36+
- uses: fossas/fossa-action@09bcf127dc0ccb4b5a023f6f906728878e8610ba # v1.4.0
3437
name: Executing tests with FOSSA
3538
with:
3639
api-key: ${{ env.fossa-key }}

.github/workflows/main-build.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches:
55
- main
6+
permissions:
7+
contents: read
8+
69
jobs:
710
build:
811
name: build
@@ -47,7 +50,7 @@ jobs:
4750
run: make test
4851

4952
- name: Login to GitHub Container Registry
50-
uses: docker/login-action@v3
53+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
5154
with:
5255
# Username used to log in to a Docker registry. If not set then no login will occur
5356
username: ${{ github.repository_owner }}
@@ -57,14 +60,14 @@ jobs:
5760
registry: ghcr.io
5861

5962
- name: Set up Docker Buildx
60-
uses: docker/setup-buildx-action@v3
63+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
6164

6265
- name: Publish on GitHub Container Registry
6366
run: make publish-multiarch
6467

6568
# https://github.com/sigstore/cosign-installer
6669
- name: Install Cosign
67-
uses: sigstore/cosign-installer@v3
70+
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
6871

6972
- name: Check Cosign install!
7073
run: cosign version

.github/workflows/nightly-e2e.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
schedule:
44
- cron: "0 0 * * *"
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
validate:
811
uses: kedacore/keda/.github/workflows/template-main-e2e-test.yml@main

.github/workflows/pr-e2e.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2121

22-
- uses: tspascoal/get-user-teams-membership@v2
22+
- uses: tspascoal/get-user-teams-membership@57e9f42acd78f4d0f496b3be4368fc5f62696662 # v3.0.0
2323
id: checkUserMember
2424
with:
2525
username: ${{ github.actor }}
@@ -109,7 +109,7 @@ jobs:
109109
make e2e-regex-check
110110
111111
- name: React to comment with failure
112-
uses: dkershner6/reaction-action@v2
112+
uses: dkershner6/reaction-action@97ede302a1b145b3739dec3ca84a489a34ef48b5 # v2
113113
if: steps.regex-validation.outcome != 'success'
114114
with:
115115
token: ${{ secrets.GITHUB_TOKEN }}
@@ -131,7 +131,7 @@ jobs:
131131
run: exit 1
132132

133133
- name: Login to GitHub Container Registry
134-
uses: docker/login-action@v3
134+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
135135
with:
136136
# Username used to log in to a Docker registry. If not set then no login will occur
137137
username: ${{ github.repository_owner }}
@@ -174,7 +174,7 @@ jobs:
174174
gh pr checkout ${{ needs.triage.outputs.pr_num }}
175175
git checkout ${{ needs.triage.outputs.commit_sha }}
176176
177-
- uses: oNaiPs/secrets-to-env-action@v1
177+
- uses: oNaiPs/secrets-to-env-action@ec46a22bfc9b37e014b627b3208b07eb8909ea0f # v1.5
178178
with:
179179
secrets: ${{ toJSON(secrets) }}
180180

@@ -219,7 +219,7 @@ jobs:
219219
TEST_CLUSTER_NAME: keda-e2e-cluster-pr
220220

221221
- name: React to comment with success
222-
uses: dkershner6/reaction-action@v2
222+
uses: dkershner6/reaction-action@97ede302a1b145b3739dec3ca84a489a34ef48b5 # v2
223223
if: steps.test.outcome == 'success'
224224
with:
225225
token: ${{ secrets.GITHUB_TOKEN }}
@@ -237,7 +237,7 @@ jobs:
237237
details_url: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
238238

239239
- name: React to comment with failure
240-
uses: dkershner6/reaction-action@v2
240+
uses: dkershner6/reaction-action@97ede302a1b145b3739dec3ca84a489a34ef48b5 # v2
241241
if: steps.test.outcome != 'success'
242242
with:
243243
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-validation.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ jobs:
6969
run: make test
7070

7171
- name: Create test Summary
72-
uses: test-summary/action@v2
72+
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
7373
with:
7474
paths: "report.xml"
7575
if: always()
7676

7777
validate-dockerfiles:
78+
permissions:
79+
contents: read # for dorny/paths-filter to fetch a list of changed files
80+
pull-requests: read # for dorny/paths-filter to read pull requests
7881
name: validate-dockerfiles - ${{ matrix.name }}
7982
runs-on: ${{ matrix.runner }}
8083
container: ghcr.io/kedacore/keda-tools:1.23.3
@@ -106,6 +109,9 @@ jobs:
106109
run: make docker-build
107110

108111
validate-dev-container:
112+
permissions:
113+
contents: read # for dorny/paths-filter to fetch a list of changed files
114+
pull-requests: read # for dorny/paths-filter to read pull requests
109115
name: Validate dev-container - ${{ matrix.name }}
110116
runs-on: ${{ matrix.runner }}
111117
container: ghcr.io/kedacore/keda-tools:1.23.3
@@ -146,7 +152,7 @@ jobs:
146152
go-version: "1.23"
147153
- name: Get golangci
148154
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
149-
- uses: pre-commit/[email protected].0
155+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
150156

151157
trivy-scan:
152158
uses: kedacore/keda/.github/workflows/template-trivy-scan.yml@main

.github/workflows/release-build.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
tags:
55
- "v*"
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
build:
812
name: Push Release
@@ -44,7 +48,7 @@ jobs:
4448
run: go mod tidy -compat=1.23
4549

4650
- name: Login to GitHub Container Registry
47-
uses: docker/login-action@v3
51+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
4852
with:
4953
# Username used to log in to a Docker registry. If not set then no login will occur
5054
username: ${{ github.repository_owner }}
@@ -63,7 +67,7 @@ jobs:
6367
VERSION: ${{ steps.get_version.outputs.VERSION }}
6468

6569
- name: Set up Docker Buildx
66-
uses: docker/setup-buildx-action@v3
70+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
6771

6872
- name: Publish KEDA images on GitHub Container Registry
6973
run: make publish-multiarch
@@ -72,7 +76,7 @@ jobs:
7276

7377
# https://github.com/sigstore/cosign-installer
7478
- name: Install Cosign
75-
uses: sigstore/cosign-installer@v3
79+
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
7680

7781
- name: Check Cosign install!
7882
run: cosign version
@@ -87,7 +91,7 @@ jobs:
8791
# Get release information to determine id of the current release
8892
- name: Get Release
8993
id: get-release-info
90-
uses: bruceadams/[email protected]
94+
uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f # v1.3.2
9195
env:
9296
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9397

.github/workflows/static-analysis-codeql.yml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: ["main"]
66
pull_request: {}
77

8+
permissions: # added using https://github.com/step-security/secure-repo
9+
contents: read
10+
811
concurrency:
912
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1013
cancel-in-progress: true

.github/workflows/template-main-e2e-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Register workspace path
2020
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2121

22-
- uses: oNaiPs/secrets-to-env-action@v1
22+
- uses: oNaiPs/secrets-to-env-action@ec46a22bfc9b37e014b627b3208b07eb8909ea0f # v1.5
2323
with:
2424
secrets: ${{ toJSON(secrets) }}
2525

.github/workflows/template-smoke-tests.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
kindImage:
1313
required: true
1414
type: string
15+
16+
permissions:
17+
contents: read
18+
1519
jobs:
1620
smoke-tests:
1721
name: Validate k8s-${{ inputs.kubernetesVersion }}
@@ -35,7 +39,7 @@ jobs:
3539
fetch-depth: 1
3640

3741
- name: Create k8s ${{ inputs.kubernetesVersion }} Kind Cluster
38-
uses: helm/[email protected]
42+
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
3943
with:
4044
node_image: ${{ inputs.kindImage }}
4145
cluster_name: smoke-tests-cluster-${{ inputs.kubernetesVersion }}

.github/workflows/template-trivy-scan.yml

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ on:
3131
required: true
3232
type: boolean
3333

34+
permissions:
35+
contents: read
36+
3437
jobs:
3538
trivy-scan:
3639
name: Trivy - ${{ inputs.runs-on }} - ${{ inputs.scan-type }} ${{ inputs.image-ref }}

.github/workflows/v1-build.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
branches:
55
- v1
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
validate:
812
name: Validate

0 commit comments

Comments
 (0)