Skip to content

Commit 625fccd

Browse files
authored
Update actions to latest (#6852)
* Update actions to latest Signed-off-by: Neo2308 <[email protected]> * Update markdown lint check action Signed-off-by: Neo2308 <[email protected]> * Fix other warnings * Fix "as" case mismatch warnings in dockerfiles * Fix "ENV" legacy format warnings in dockerfiles * Fix "set-output" deprecated warnings in github actions Signed-off-by: Neo2308 <[email protected]> --------- Signed-off-by: Neo2308 <[email protected]>
1 parent 4c30e49 commit 625fccd

File tree

13 files changed

+39
-39
lines changed

13 files changed

+39
-39
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
outputs:
1919
skip: ${{ steps.check_docs_only.outputs.skip }}
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
2424
- id: check_docs_only
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
REF="HEAD^"
2929
[[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
30-
echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)"
30+
echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT
3131
3232
# Job to test release steps. This will only create a release remotely if run on a tagged commit.
3333
goreleaser:
@@ -39,7 +39,7 @@ jobs:
3939
environment: deploy
4040
steps:
4141
- name: checkout
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
4545

@@ -77,30 +77,30 @@ jobs:
7777
steps:
7878

7979
- name: set up qemu
80-
uses: docker/setup-qemu-action@v2
80+
uses: docker/setup-qemu-action@v3
8181

8282
- name: set up buildx
8383
uses: docker/setup-buildx-action@v3
8484

8585
- name: quay.io login
8686
if: ${{ github.event_name != 'pull_request' }}
87-
uses: docker/login-action@v2
87+
uses: docker/login-action@v3
8888
with:
8989
username: ${{ secrets.QUAY_USERNAME }}
9090
password: ${{ secrets.QUAY_PASSWORD }}
9191
registry: quay.io
9292

9393
# Check out repo before tag step for script.
9494
- name: checkout
95-
uses: actions/checkout@v3
95+
uses: actions/checkout@v4
9696
with:
9797
fetch-depth: 0
9898

9999
- name: create tags
100100
id: tags
101101
run: |
102102
IMG=quay.io/${{ github.repository_owner }}/${{ matrix.id }}
103-
echo ::set-output name=tags::$(.github/workflows/get_image_tags.sh "$IMG" "v")
103+
echo tags=$(.github/workflows/get_image_tags.sh "$IMG" "v") >> $GITHUB_OUTPUT
104104
105105
- name: build and push
106106
uses: docker/build-push-action@v6
@@ -123,30 +123,30 @@ jobs:
123123
steps:
124124

125125
- name: set up qemu
126-
uses: docker/setup-qemu-action@v2
126+
uses: docker/setup-qemu-action@v3
127127

128128
- name: set up buildx
129129
uses: docker/setup-buildx-action@v3
130130

131131
- name: quay.io login
132132
if: ${{ github.event_name != 'pull_request' }}
133-
uses: docker/login-action@v2
133+
uses: docker/login-action@v3
134134
with:
135135
username: ${{ secrets.QUAY_USERNAME }}
136136
password: ${{ secrets.QUAY_PASSWORD }}
137137
registry: quay.io
138138

139139
# Check out repo before tag step for script.
140140
- name: checkout
141-
uses: actions/checkout@v3
141+
uses: actions/checkout@v4
142142
with:
143143
fetch-depth: 0
144144

145145
- name: create tags
146146
id: tags
147147
run: |
148148
IMG=quay.io/${{ github.repository_owner }}/scorecard-test-kuttl
149-
echo ::set-output name=tags::$(.github/workflows/get_image_tags.sh "$IMG" "scorecard-kuttl/v")
149+
echo tags=$(.github/workflows/get_image_tags.sh "$IMG" "scorecard-kuttl/v") >> $GITHUB_OUTPUT
150150
151151
- name: build and push
152152
uses: docker/build-push-action@v6

.github/workflows/freshen-images.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
git_tags: ${{ steps.tags.outputs.git_tags }}
1919
steps:
2020
- name: checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
2424
- id: tags
@@ -35,17 +35,17 @@ jobs:
3535
id: ["operator-sdk", "helm-operator", "scorecard-test"]
3636
steps:
3737
- name: set up qemu
38-
uses: docker/setup-qemu-action@v2
38+
uses: docker/setup-qemu-action@v3
3939
- name: set up buildx
4040
uses: docker/setup-buildx-action@v3
4141
- name: quay.io login
42-
uses: docker/login-action@v2
42+
uses: docker/login-action@v3
4343
with:
4444
username: ${{ secrets.QUAY_USERNAME }}
4545
password: ${{ secrets.QUAY_PASSWORD }}
4646
registry: quay.io
4747
- name: checkout
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 1
5151
- name: build and push

.github/workflows/integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
outputs:
1010
skip: ${{ steps.check_docs_only.outputs.skip }}
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
- id: check_docs_only
@@ -18,15 +18,15 @@ jobs:
1818
run: |
1919
REF="HEAD^"
2020
[[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
21-
echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)"
21+
echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT
2222
2323
integration:
2424
name: integration
2525
runs-on: ubuntu-22.04
2626
needs: check_docs_only
2727
if: needs.check_docs_only.outputs.skip != 'true'
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
3232
- uses: actions/setup-go@v5

.github/workflows/olm-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: check-olm-minor-releases
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- id: run-check-olm
1717
run: ./hack/check-olm.sh
1818

.github/workflows/test-go.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
outputs:
1313
skip: ${{ steps.check_docs_only.outputs.skip }}
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- id: check_docs_only
@@ -21,15 +21,15 @@ jobs:
2121
run: |
2222
REF="HEAD^"
2323
[[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
24-
echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)"
24+
echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT
2525
2626
e2e:
2727
name: e2e
2828
runs-on: ubuntu-22.04
2929
needs: check_docs_only
3030
if: needs.check_docs_only.outputs.skip != 'true'
3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
with:
3434
fetch-depth: 0
3535
- uses: actions/setup-go@v5
@@ -44,7 +44,7 @@ jobs:
4444
needs: check_docs_only
4545
if: needs.check_docs_only.outputs.skip != 'true'
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
with:
4949
fetch-depth: 0
5050
- uses: actions/setup-go@v5

.github/workflows/test-helm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
outputs:
1010
skip: ${{ steps.check_docs_only.outputs.skip }}
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
- id: check_docs_only
@@ -18,15 +18,15 @@ jobs:
1818
run: |
1919
REF="HEAD^"
2020
[[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
21-
echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)"
21+
echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT
2222
2323
e2e:
2424
name: e2e
2525
runs-on: ubuntu-22.04
2626
needs: check_docs_only
2727
if: needs.check_docs_only.outputs.skip != 'true'
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
3232
- uses: actions/setup-go@v5

.github/workflows/test-sample-go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
outputs:
1010
skip: ${{ steps.check_docs_only.outputs.skip }}
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
- id: check_docs_only
@@ -18,15 +18,15 @@ jobs:
1818
run: |
1919
REF="HEAD^"
2020
[[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
21-
echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)"
21+
echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT
2222
2323
e2e:
2424
name: e2e
2525
runs-on: ubuntu-22.04
2626
needs: check_docs_only
2727
if: needs.check_docs_only.outputs.skip != 'true'
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
3232
- uses: actions/setup-go@v5

.github/workflows/test-sanity.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
outputs:
1010
skip: ${{ steps.check_docs_only.outputs.skip }}
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
- id: check_docs_only
@@ -26,7 +26,7 @@ jobs:
2626
needs: check_docs_only
2727
if: needs.check_docs_only.outputs.skip != 'true'
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
3232
- uses: actions/setup-go@v5
@@ -40,12 +40,12 @@ jobs:
4040
name: docs
4141
runs-on: ubuntu-22.04
4242
steps:
43-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
4444
with:
4545
fetch-depth: 0
4646
submodules: recursive
4747
- run: make test-docs
48-
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.13
48+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
4949
with:
5050
max-depth: 1
5151
config-file: '.github/workflows/markdown-link-check-config.json'

images/custom-scorecard-tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the custom-scorecard-tests binary
2-
FROM --platform=$BUILDPLATFORM golang:1.21 as builder
2+
FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
33
ARG TARGETARCH
44

55
WORKDIR /workspace

images/helm-operator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM --platform=$BUILDPLATFORM golang:1.21 as builder
2+
FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
33
ARG TARGETARCH
44

55
WORKDIR /workspace

0 commit comments

Comments
 (0)