Skip to content

Commit 6db07da

Browse files
Update GitHub Actions
1 parent e61e4e3 commit 6db07da

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
- arm64
3636
runs-on: ${{ github.repository == 'rancher/prometheus-federator' && format('runs-on,image=ubuntu22-full-{1},runner=4cpu-linux-{1},run-id={0}', github.run_id, matrix.arch) || 'ubuntu-latest' }}
3737
steps:
38-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
38+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
3939
- name : Set up Go
40-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
40+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
4141
with:
4242
go-version: '1.22'
4343
- name: Check if yq is installed
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
sudo wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }} -O /usr/bin/yq && sudo chmod +x /usr/bin/yq;
5757
- name : Install helm
58-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4
58+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
5959
with:
6060
token: ${{ secrets.GITHUB_TOKEN }}
6161
- name: Run CI

.github/workflows/integration.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ jobs:
3939
runs-on: ${{ github.repository == 'rancher/prometheus-federator' && format('runs-on,image=ubuntu22-full-{1},runner=4cpu-linux-{1},run-id={0}', github.run_id, matrix.arch) || 'ubuntu-latest' }}
4040
steps:
4141
- name : Checkout repository
42-
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
42+
uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
4343
- name: Install go
44-
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
44+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
4545
with:
4646
go-version: 1.24
4747
- name : Install helm
48-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4
48+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
4949
with:
5050
token: ${{ secrets.GITHUB_TOKEN }}
5151
- name: Set up Docker Buildx
52-
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
52+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
5353
- name : Install k3d
5454
run : ./.github/workflows/e2e/scripts/install-k3d.sh
5555
- name : Setup test environment

.github/workflows/lint.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
name: lint
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22-
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
21+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
22+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
2323
with:
2424
go-version: '1.22'
2525
- name : Install helm
26-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4
26+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
2727
with:
2828
token: ${{ secrets.GITHUB_TOKEN }}
2929
- name: Package helm chart
3030
run : ./scripts/build-chart && BUILD_TARGET=helm-project-operator ./scripts/build-chart
3131
- name: golangci-lint
32-
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7 #
32+
uses: golangci/golangci-lint-action@9fae48acfc02a90574d7c304a1758ef9895495fa # v7 #
3333
with:
3434
# Require: The version of golangci-lint to use.
3535
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.

.github/workflows/pr-debug-publish.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
# Checkout the code at the head of the specified PR
3131
- name: Checkout the repository
32-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
32+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
3333
- name: Get Pull Request Head SHA
3434
id: get_head_sha
3535
run: |
@@ -56,28 +56,28 @@ jobs:
5656
steps:
5757
# Checkout the code at the head of the specified PR
5858
- name: Checkout PR Head
59-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
59+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
6060
with:
6161
ref: ${{ needs.prepare_pr_info.outputs.head_sha }}
6262
# Proceed to build images
6363
- name: Set up Docker Buildx
64-
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
64+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
6565
- name: Log in to the Container registry
66-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
66+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
6767
with:
6868
registry: ${{ env.GHCR_REGISTRY }}
6969
username: ${{ github.actor }}
7070
password: ${{ secrets.GITHUB_TOKEN }}
7171
- name: Extract metadata (tags, labels) for Helm-Project-Operator image
7272
id: meta-helm-project-operator
73-
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
73+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5
7474
with:
7575
images: ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}/helm-project-operator
7676
tags: |
7777
type=raw,value=pr-${{ github.event.inputs.pr_number }}-${{ needs.prepare_pr_info.outputs.head_sha_short }}
7878
type=raw,value=pr-${{ github.event.inputs.pr_number }}
7979
- name: Build Helm-Project-Operator image
80-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
80+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
8181
with:
8282
context: .
8383
file: ./package/Dockerfile-helm-project-operator
@@ -99,28 +99,28 @@ jobs:
9999
steps:
100100
# Checkout the code at the head of the specified PR
101101
- name: Checkout PR Head
102-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
102+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
103103
with:
104104
ref: ${{ needs.prepare_pr_info.outputs.head_sha }}
105105
# Proceed to build images
106106
- name: Set up Docker Buildx
107-
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
107+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
108108
- name: Log in to the Container registry
109-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
109+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
110110
with:
111111
registry: ${{ env.GHCR_REGISTRY }}
112112
username: ${{ github.actor }}
113113
password: ${{ secrets.GITHUB_TOKEN }}
114114
- name: Extract metadata (tags, labels) for Prometheus Federator image
115115
id: meta-prometheus-federator
116-
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
116+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5
117117
with:
118118
images: ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}
119119
tags: |
120120
type=raw,value=pr-${{ github.event.inputs.pr_number }}-${{ needs.prepare_pr_info.outputs.head_sha_short }}
121121
type=raw,value=pr-${{ github.event.inputs.pr_number }}
122122
- name: Build prometheus-federator image
123-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
123+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
124124
with:
125125
context: .
126126
file: ./package/Dockerfile-prometheus-federator
@@ -141,7 +141,7 @@ jobs:
141141
pull-requests: write
142142
steps:
143143
- name: Comment on PR with image details
144-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
144+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
145145
env:
146146
# meta-helm-locker: ${{ needs.build_dev_helm_locker.outputs.tags }}
147147
meta-helm-project-operator: ${{ needs.build_dev_helm_project_operator.outputs.tags }}

.github/workflows/prom-fed-e2e-ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ jobs:
5656
runs-on: ${{ github.repository == 'rancher/prometheus-federator' && format('runs-on,image=ubuntu22-full-{1},runner=4cpu-linux-{1},run-id={0}', github.run_id, matrix.arch) || 'ubuntu-latest' }}
5757
steps:
5858
-
59-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
59+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
6060
with:
6161
fetch-depth: 0
62-
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
62+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
6363
with:
6464
go-version: '>=1.20.0'
65-
- uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4
65+
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4
6666
- name : Install helm
67-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4
67+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
6868
with:
6969
token: ${{ secrets.GITHUB_TOKEN }}
7070
- name: Check if yq is installed
@@ -164,7 +164,7 @@ jobs:
164164
run: ./.github/workflows/e2e/scripts/generate-artifacts.sh;
165165
- name: Upload logs and manifests on failure
166166
if: failure()
167-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
167+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
168168
with:
169169
name: artifacts-${{ matrix.arch }}-${{ inputs.k3s_version || env.K3S_MIN_VERSION_TAG }}
170170
path: artifacts/

.github/workflows/publish.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
3232
steps:
33-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
33+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
3434
with:
3535
fetch-depth: 0
3636
- run: git fetch --force --tags
3737
- name : setup Go
38-
uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
38+
uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3939
with:
4040
go-version: 1.22
4141
- name: Check if yq is installed
@@ -52,16 +52,16 @@ jobs:
5252
if: steps.check_yq.outputs.install_yq == 'true'
5353
run: |
5454
sudo wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq && sudo chmod +x /usr/bin/yq;
55-
- uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4
55+
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4
5656
- name : Install helm
57-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4
57+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
5858
with:
5959
token: ${{ secrets.GITHUB_TOKEN }}
6060
- name: Prepare helm charts (needed for build)
6161
run: |
6262
GIT_TAG=${{ github.ref_name }} BUILD_TARGET=prometheus-federator make package-helm && echo "pf: release chart prepared"
6363
BUILD_TARGET=prometheus-federator make build-chart && echo "pf: embedded project-monitoring chart prepared"
64-
- uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6
64+
- uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6
6565
with:
6666
distribution: goreleaser
6767
version: latest
@@ -83,22 +83,22 @@ jobs:
8383
id-token: write
8484
steps:
8585
- name : Checkout repository
86-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
86+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
8787
- name: Set up Docker Buildx
88-
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
88+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
8989
- name: Log in to the Container registry
90-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
90+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
9191
with:
9292
registry: ${{ env.GHCR_REGISTRY }}
9393
username: ${{ github.actor }}
9494
password: ${{ secrets.GITHUB_TOKEN }}
9595
- name: Extract metadata (tags, labels) for Helm-Project-Operator image
9696
id: meta-hpo
97-
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
97+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5
9898
with:
9999
images: ${{ env.GHCR_REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE_NAME }}/helm-project-operator
100100
- name: Build Helm-Project-Operator image
101-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
101+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
102102
with:
103103
context: .
104104
file: ./package/Dockerfile-helm-project-operator
@@ -120,7 +120,7 @@ jobs:
120120
id-token: write
121121
steps:
122122
- name : Checkout repository
123-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
123+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
124124
- name: Prepare helm charts (needed for build)
125125
run: |
126126
GIT_TAG=${{ github.ref_name }} BUILD_TARGET=prometheus-federator make package-helm && echo "pf: release chart prepared"

0 commit comments

Comments
 (0)