Skip to content

Commit c74fb04

Browse files
NigelByrne1dirgim
authored andcommitted
chore: pin github actions to commit digests
Achieves compliance with the organization-level policy requiring actions to be pinned to full-length commit SHAs across the konflux-ci and redhat-appstudio GitHub organizations. Signed-off-by: nbyrne <nbyrne@redhat.com>
1 parent 6285714 commit c74fb04

6 files changed

Lines changed: 30 additions & 30 deletions

File tree

.github/workflows/agentready.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010

1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v7
13+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1414

15-
- uses: actions/setup-python@v7
15+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
1616
with:
1717
python-version: '3.14'
18-
- uses: BSFishy/pip-action@v1
18+
- uses: BSFishy/pip-action@8f2d471d809dc20b6ada98c91910b6ae6243f318 # v1
1919
with:
2020
packages: |
2121
agentready==2.31.2

.github/workflows/codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ jobs:
88
runs-on: ubuntu-24.04
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v7
11+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1212
with:
1313
persist-credentials: false
1414
- name: Set up Go 1.x
15-
uses: actions/setup-go@v7
15+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
1616
with:
1717
go-version: "1.25.0"
1818
- name: Run tests
1919
run: make test
2020
- name: Codecov
21-
uses: codecov/codecov-action@v7
21+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7
2222
with:
2323
token: ${{ secrets.CODECOV_TOKEN }}
2424
flags: unit-tests

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v7
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2828

2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v4
30+
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
3131
with:
3232
languages: ${{ matrix.language }}
3333
queries: +security-and-quality
3434

3535
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v4
36+
uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
3737

3838
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v4
39+
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
4040
with:
4141
category: "/language:${{matrix.language}}"

.github/workflows/fullsend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
if: >-
4242
github.event_name != 'issue_comment'
4343
|| github.event.comment.user.type != 'Bot'
44-
uses: konflux-ci/.fullsend/.github/workflows/dispatch.yml@main
44+
uses: konflux-ci/.fullsend/.github/workflows/dispatch.yml@701e62a9c6f104ed68f8d4085d9c3b8bad3a82e4 # main
4545
with:
4646
event_action: ${{ github.event.action }}
4747

.github/workflows/pr.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,34 @@ jobs:
1212
name: Check Dockerfiles
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v7
16-
- uses: hadolint/hadolint-action@v3.1.0
15+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
16+
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
1717
with:
1818
dockerfile: Dockerfile
1919
go-linters:
2020
name: Go linters
2121
runs-on: ubuntu-24.04
2222
steps:
2323
- name: Set up Go 1.x
24-
uses: actions/setup-go@v7
24+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
2525
with:
2626
go-version: "1.25.0"
2727
- name: Check out code into the Go module directory
28-
uses: actions/checkout@v7
28+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2929
with:
3030
fetch-depth: 0
3131
- name: Run Gosec Security Scanner
32-
uses: securego/gosec@master
32+
uses: securego/gosec@9e75c0576c9878035d4221392108d458abe10fc3 # v2.28.0
3333
with:
3434
args: -exclude-generated ./...
3535
env:
3636
GOROOT: ""
3737
- name: golangci-lint
38-
uses: golangci/golangci-lint-action@v9
38+
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9
3939
with:
4040
args: --timeout=10m
4141
only-new-issues: true
42-
- uses: dominikh/staticcheck-action@v1.4.0
42+
- uses: dominikh/staticcheck-action@024238d2898c874f26d723e7d0ff4308c35589a2 # v1.4.0
4343
with:
4444
version: "latest"
4545
install-go: false
@@ -51,15 +51,15 @@ jobs:
5151
OPERATOR_SDK_VERSION: v1.39.1
5252
steps:
5353
- name: Set up Go 1.x
54-
uses: actions/setup-go@v7
54+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
5555
with:
5656
go-version: "1.25.0"
5757
- name: Check out code into the Go module directory
58-
uses: actions/checkout@v7
58+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
5959
with:
6060
fetch-depth: 0
6161
- name: Cache Operator SDK ${{ env.OPERATOR_SDK_VERSION }}
62-
uses: actions/cache@v6
62+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
6363
id: cache-operator-sdk
6464
with:
6565
path: ~/cache
@@ -81,7 +81,7 @@ jobs:
8181
make kustomize controller-gen
8282
- name: Cache go modules
8383
id: cache-mod
84-
uses: actions/cache@v6
84+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
8585
with:
8686
path: ~/go/pkg/mod
8787
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -131,7 +131,7 @@ jobs:
131131
run: |
132132
make test
133133
- name: Upload coverage to Codecov
134-
uses: codecov/codecov-action@v7
134+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7
135135
with:
136136
token: ${{ secrets.CODECOV_TOKEN }}
137137
flags: unit-tests
@@ -140,7 +140,7 @@ jobs:
140140
runs-on: ubuntu-24.04
141141
steps:
142142
- name: Check out code
143-
uses: actions/checkout@v7
143+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
144144
with:
145145
fetch-depth: 0
146146
ref: ${{ github.event.pull_request.head.sha }}
@@ -151,7 +151,7 @@ jobs:
151151
kube-linter:
152152
runs-on: ubuntu-latest
153153
steps:
154-
- uses: actions/checkout@v7
154+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
155155
# This prepares directory where github/codeql-action/upload-sarif@v1 looks up report files by default.
156156
- name: Create ./.kube-linter/ for deployment files
157157
shell: bash
@@ -160,7 +160,7 @@ jobs:
160160
shell: bash
161161
run: kustomize build config/default/ > ./.kube-linter/deploy-default.yaml
162162
- name: Scan yaml files with kube-linter
163-
uses: stackrox/kube-linter-action@v1
163+
uses: stackrox/kube-linter-action@87802a2f4e01abebb3ee3c67a3002fea71f6eae5 # v1
164164
id: kube-linter-action-scan
165165
with:
166166
# Adjust this directory to the location where your kubernetes resources and helm charts are located.

.github/workflows/test-chart.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Clone the code
17-
uses: actions/checkout@v7
17+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1818

1919
- name: Setup Go
20-
uses: actions/setup-go@v7
20+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
2121
with:
2222
go-version-file: go.mod
2323

@@ -90,9 +90,9 @@ jobs:
9090
kube-linter:
9191
runs-on: ubuntu-latest
9292
steps:
93-
- uses: actions/checkout@v7
93+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
9494
- name: Scan yaml files with kube-linter
95-
uses: stackrox/kube-linter-action@v1
95+
uses: stackrox/kube-linter-action@87802a2f4e01abebb3ee3c67a3002fea71f6eae5 # v1
9696
id: kube-linter-action-scan
9797
with:
9898
# Adjust this directory to the location where your kubernetes resources and helm charts are located.

0 commit comments

Comments
 (0)