Skip to content

Commit 2f03a2d

Browse files
committed
Update all workflow action versions
[TNZ-72265](https://vmw-jira.broadcom.net/browse/TNZ-72265)
1 parent bd3818a commit 2f03a2d

3 files changed

Lines changed: 29 additions & 25 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v5
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v3
46+
uses: github/codeql-action/init@v4
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v3
71+
uses: github/codeql-action/analyze@v4

.github/workflows/release.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,44 @@ permissions:
1010
contents: write
1111

1212
jobs:
13-
release_kiln:
13+
release:
1414
name: "Release Kiln"
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919
with:
2020
fetch-depth: 0
2121
token: ${{ secrets.RELEEN_GITHUB_TOKEN }}
2222

2323
- name: Set up Go
24-
uses: actions/setup-go@v5
24+
uses: actions/setup-go@v6
2525
with:
2626
go-version-file: go.mod
2727

28+
- name: golangci-lint
29+
uses: golangci/golangci-lint-action@v9
30+
31+
- name: Ensure Generate Succeeds and Does Not Make Changes
32+
run: |
33+
go generate ./...
34+
git status --porcelain # When this fails, things have changed.
35+
2836
- name: Build
2937
run: |
30-
go build ./...
38+
go build -v ./...
3139
3240
- name: Setup SSH
33-
uses: webfactory/ssh-agent@v0.7.0
41+
uses: webfactory/ssh-agent@v0.9.0
3442
with:
3543
ssh-private-key: ${{ secrets.RELENG_CI_BOT_KEY }}
3644

37-
- name: Unit Test
38-
env:
39-
GITHUB_ACCESS_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }}
45+
- name: Unit Tests
4046
run: |
4147
go test --covermode=atomic --coverprofile=kiln-${{ github.sha }}-unit-test-code-coverage.out -skip 'TestDockerIntegration|TestAcceptance' ./...
4248
4349
- name: Archive Unit Test Code Coverage Output
44-
uses: actions/upload-artifact@v4
50+
uses: actions/upload-artifact@v6
4551
with:
4652
name: Unit Test Code Coverage Output
4753
path: kiln-${{github.sha}}-unit-test-code-coverage.out
@@ -53,22 +59,21 @@ jobs:
5359
run: |
5460
set -euo pipefail
5561
56-
go test -v --timeout 24h --tags acceptance github.com/pivotal-cf/kiln/internal/acceptance/workflows
62+
go test -v --timeout 15m --tags acceptance github.com/pivotal-cf/kiln/internal/acceptance/workflows
5763
5864
git reset --hard HEAD
5965
6066
- name: Login to Docker Hub
61-
uses: docker/login-action@v2
67+
uses: docker/login-action@v3
6268
with:
6369
username: ${{ secrets.DOCKERHUB_USERNAME }}
6470
password: ${{ secrets.DOCKERHUB_TOKEN }}
6571

6672
- name: Run GoReleaser
67-
uses: goreleaser/goreleaser-action@v2
73+
uses: goreleaser/goreleaser-action@v6
6874
with:
6975
distribution: goreleaser
7076
version: "~> v2"
7177
args: release --clean
7278
env:
7379
GITHUB_TOKEN: ${{ github.token }}
74-

.github/workflows/test.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ on:
77

88
jobs:
99
test:
10-
name: test
10+
name: "Test Kiln"
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515
with:
1616
fetch-depth: 0
1717
token: ${{ secrets.RELEEN_GITHUB_TOKEN }}
1818

1919
- name: Set up Go
20-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@v6
2121
with:
2222
go-version-file: go.mod
2323

2424
- name: golangci-lint
25-
uses: golangci/golangci-lint-action@v6.3.0
25+
uses: golangci/golangci-lint-action@v9
2626

2727
- name: Ensure Generate Succeeds and Does Not Make Changes
2828
run: |
@@ -34,7 +34,7 @@ jobs:
3434
go build -v ./...
3535
3636
- name: Setup SSH
37-
uses: webfactory/ssh-agent@v0.7.0
37+
uses: webfactory/ssh-agent@v0.9.0
3838
with:
3939
ssh-private-key: ${{ secrets.RELENG_CI_BOT_KEY }}
4040

@@ -43,17 +43,16 @@ jobs:
4343
go test --covermode=atomic --coverprofile=kiln-${{ github.sha }}-unit-test-code-coverage.out -skip 'TestDockerIntegration|TestAcceptance' ./...
4444
4545
- name: Archive Unit Test Code Coverage Output
46-
uses: actions/upload-artifact@v4
46+
uses: actions/upload-artifact@v6
4747
with:
4848
name: Unit Test Code Coverage Output
49-
path: kiln-${{ github.sha }}-unit-test-code-coverage.out
49+
path: kiln-${{github.sha}}-unit-test-code-coverage.out
5050

5151
- name: Acceptance Tests
5252
env:
5353
CGO_ENABLED: '0'
54-
RELEEN_GITHUB_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }}
54+
GITHUB_ACCESS_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }}
5555
run: |
5656
set -euo pipefail
57-
export GITHUB_ACCESS_TOKEN="${RELEEN_GITHUB_TOKEN}"
5857
5958
go test -v --timeout 15m --tags acceptance github.com/pivotal-cf/kiln/internal/acceptance/workflows

0 commit comments

Comments
 (0)