Skip to content

Commit 27b56ba

Browse files
authored
Merge pull request #799 from bschaatsbergen/pin-gha-actions
chore: bump and pin GitHub Actions by SHA instead of tag
2 parents 42f0466 + 6e4f78b commit 27b56ba

File tree

9 files changed

+31
-144
lines changed

9 files changed

+31
-144
lines changed

.github/workflows/build-image.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/deploy-docs.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,22 @@ jobs:
1616
run:
1717
working-directory: ./website
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2020
with:
2121
fetch-depth: 0
22-
- uses: actions/setup-node@v4
22+
23+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
2324
with:
2425
node-version: 20
2526

2627
- name: Install dependencies
2728
run: npm install --frozen-lockfile
29+
2830
- name: Build website
2931
run: npm run build
3032

3133
- name: Upload Build Artifact
32-
uses: actions/upload-pages-artifact@v3
34+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
3335
with:
3436
path: ./website/build
3537

@@ -51,4 +53,4 @@ jobs:
5153
steps:
5254
- name: Deploy to GitHub Pages
5355
id: deployment
54-
uses: actions/deploy-pages@v4
56+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # #v4.0.5

.github/workflows/e2e-tests.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/github-release.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v4
17-
- name: Release
18-
uses: softprops/action-gh-release@v2
15+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
16+
- uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # 2.4.1
1917
with:
2018
generate_release_notes: true

.github/workflows/golangci-lint.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
name: lint
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-go@v5
23+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
24+
25+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
2526
with:
2627
go-version: stable
28+
2729
- name: golangci-lint
2830
uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9
2931
with:

.github/workflows/integration-tests.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/postsubmit.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
postsubmit:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v5
11-
- name: hydrate-goproxy
12-
run: |
13-
mkdir -p hydrate-goproxy
14-
cd hydrate-goproxy
15-
go mod init hydrate-goproxy
16-
go get github.com/kubernetes-sigs/kro@${GITHUB_SHA}
10+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
11+
- name: hydrate-goproxy
12+
run: |
13+
mkdir -p hydrate-goproxy
14+
cd hydrate-goproxy
15+
go mod init hydrate-goproxy
16+
go get github.com/kubernetes-sigs/kro@${GITHUB_SHA}

.github/workflows/test-docs.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'website/**'
8+
- "website/**"
99

1010
jobs:
1111
test-deploy:
@@ -15,14 +15,16 @@ jobs:
1515
run:
1616
working-directory: ./website
1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
1919
with:
2020
fetch-depth: 0
21-
- uses: actions/setup-node@v5
21+
22+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
2223
with:
2324
node-version: 20
24-
25+
2526
- name: Install dependencies
2627
run: npm install --frozen-lockfile
28+
2729
- name: Test build website
2830
run: npm run build

.github/workflows/unit-tests.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: unit tests
22
on:
33
push:
4-
branches: [ main ]
4+
branches: [main]
55
paths:
66
- "**.go"
77
- go.mod
88
- go.sum
99
- scripts/ci/**
1010
pull_request:
11-
branches: [ main ]
11+
branches: [main]
1212
paths:
1313
- "**.go"
1414
- go.mod
@@ -18,16 +18,13 @@ on:
1818
jobs:
1919
build:
2020
runs-on: ubuntu-latest
21-
strategy:
22-
matrix:
23-
go-version: [ '1.24' ]
2421

2522
steps:
26-
- uses: actions/checkout@v3
27-
- name: Setup Go ${{ matrix.go-version }}
28-
uses: actions/setup-go@v4
23+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
24+
25+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
2926
with:
30-
go-version: ${{ matrix.go-version }}
27+
go-version-file: "go.mod"
3128

3229
- name: Run scripts/ci/presubmits/unit-tests
3330
run: scripts/ci/presubmits/unit-tests

0 commit comments

Comments
 (0)