Skip to content

Commit 858e5c7

Browse files
authored
chore(ci): update github workflows to latest version and pin to sha
1 parent 1a12dde commit 858e5c7

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

.github/workflows/create-releases.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
- main
66
workflow_dispatch:
77

8+
permissions: {}
89
jobs:
910
unreleased-prs-metadata:
1011
name: Get list of pending release pull requests
1112
permissions:
1213
pull-requests: read
1314
contents: read
14-
uses: equinor/radix-reusable-workflows/.github/workflows/template-unreleased-pr-metadata.yml@v1.0.2
15+
uses: equinor/radix-reusable-workflows/.github/workflows/template-unreleased-pr-metadata.yml@bbbf79dd34776ca9e9a4dc4fcf6dc643953f37e8 # v1.1.0
1516

1617
release-pull-request:
1718
name: Release pull request
@@ -25,7 +26,7 @@ jobs:
2526
pull-requests: write
2627
contents: read
2728
issues: write
28-
uses: equinor/radix-reusable-workflows/.github/workflows/template-create-release-from-pr.yml@v1.0.2
29+
uses: equinor/radix-reusable-workflows/.github/workflows/template-create-release-from-pr.yml@bbbf79dd34776ca9e9a4dc4fcf6dc643953f37e8 # v1.1.0
2930
with:
3031
pull-request-number: ${{ matrix.pull-request-number }}
3132
use-github-app-token: true

.github/workflows/deploy.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
tags:
55
- 'v[0-9]+.[0-9]+.[0-9]+' # semver stable
66
- 'v[0-9]+.[0-9]+.[0-9]+-*' # semver with prerelease suffix
7+
permissions: {}
78
jobs:
89
metadata:
910
runs-on: ubuntu-latest
@@ -13,7 +14,7 @@ jobs:
1314
version: ${{ steps.metadata.outputs.version }}
1415
release-exist: ${{ steps.metadata.outputs.release_exist }}
1516
steps:
16-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1718
- name: Metadata
1819
id: metadata
1920
env:
@@ -41,21 +42,21 @@ jobs:
4142
env:
4243
CONTAINER_REGISTRY: ghcr.io
4344
steps:
44-
- uses: actions/checkout@v4
45-
- uses: docker/login-action@v3
45+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
46+
- uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
4647
with:
4748
registry: ${{ env.CONTAINER_REGISTRY }}
4849
username: ${{ github.actor }}
4950
password: ${{ secrets.GITHUB_TOKEN }}
50-
- uses: docker/setup-buildx-action@v3
51+
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
5152
- name: Container metadata
5253
id: container-metadata
53-
uses: docker/metadata-action@v5
54+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
5455
with:
5556
images: "${{ env.CONTAINER_REGISTRY }}/equinor/radix/prometheus-proxy"
5657
tags: ${{ needs.metadata.outputs.version }}
5758
- name: Build and push container images
58-
uses: docker/build-push-action@v6
59+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
5960
with:
6061
context: .
6162
push: true
@@ -74,9 +75,9 @@ jobs:
7475
env:
7576
HELM_CHART_REGISTRY: oci://ghcr.io
7677
steps:
77-
- uses: actions/checkout@v4
78+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7879
- name: Install Helm
79-
uses: azure/setup-helm@v4
80+
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
8081
with:
8182
version: v3.18.3
8283
- name: Helm login

.github/workflows/pr.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,31 @@ on:
33
pull_request:
44
workflow_dispatch:
55

6+
permissions: {}
67
jobs:
78
build:
89
name: Build
910
runs-on: ubuntu-latest
1011
permissions:
1112
contents: read
1213
steps:
13-
- uses: actions/checkout@v4
14-
- name: Build docker image
15-
run: docker build .
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+
- name: Build docker image
16+
run: docker build .
1617

1718
lint:
1819
name: Lint
1920
runs-on: ubuntu-latest
2021
permissions:
2122
contents: read
2223
steps:
23-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2425
with:
2526
fetch-depth: 2
26-
- uses: actions/setup-go@v5
27+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2728
with:
2829
go-version-file: 'go.mod'
2930
- name: golangci-lint
30-
uses: golangci/golangci-lint-action@v8
31+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
3132
with:
3233
version: v2.10.1

.github/workflows/prepare-release-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ on:
77
- main
88
workflow_dispatch:
99

10+
permissions: {}
1011
concurrency:
1112
group: ${{ github.workflow }}
1213

1314
jobs:
1415
prepare-release-pr:
1516
name: Prepare release pull request
16-
uses: equinor/radix-reusable-workflows/.github/workflows/template-prepare-release-pr.yml@v1.0.2
17+
uses: equinor/radix-reusable-workflows/.github/workflows/template-prepare-release-pr.yml@bbbf79dd34776ca9e9a4dc4fcf6dc643953f37e8 # v1.1.0
1718
permissions:
1819
contents: write
1920
pull-requests: write

0 commit comments

Comments
 (0)