Skip to content

Commit cd060ac

Browse files
committed
feat: Use most recent github actions, immutable refs
1 parent b53892d commit cd060ac

File tree

6 files changed

+33
-17
lines changed

6 files changed

+33
-17
lines changed

templates/.github/workflows/10-review.yaml.j2

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313
if: github.actor != 'dependabot[bot]'
1414
continue-on-error: true
1515
steps:
16-
- uses: actions/checkout@v6
16+
# v6 https://github.com/actions/checkout/commit/de0fac2e4500dabe0009e67214ff5f5447ce83dd
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
1718

1819
# interesting alternative: https://github.com/cocogitto/cocogitto
19-
- uses: webiny/action-conventional-commits@v1.3.0
20-
# XXX: normal action versioning syntax (`@v1`) doesn't work with this action,
21-
# possibly because not published on the GitHub marketplace
20+
# v1.3.0 https://github.com/webiny/action-conventional-commits/commit/8bc41ff4e7d423d56fa4905f6ff79209a78776c7
21+
- uses: webiny/action-conventional-commits@8bc41ff4e7d423d56fa4905f6ff79209a78776c7
2222

2323
- name: Check Card# reference
24-
uses: linkorb/commit-message-checker@v1
24+
# v1 https://github.com/linkorb/commit-message-checker/commit/dc804b50ce575a720739ec3f0ef3d5030130ec98
25+
uses: linkorb/commit-message-checker@dc804b50ce575a720739ec3f0ef3d5030130ec98
2526
with:
2627
# Matches lines that end in a card number: #1234
2728
# Matches lines that end in a card number and PR reference: #1234 (#20)
@@ -37,7 +38,8 @@ jobs:
3738
code-quality:
3839
runs-on: ubuntu-latest
3940
steps:
40-
- uses: actions/checkout@v6
41+
# v6 https://github.com/actions/checkout/commit/de0fac2e4500dabe0009e67214ff5f5447ce83dd
42+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
4143
- name: latest repo-ansible/reviewdog container
4244
run: docker pull ghcr.io/linkorb/repo-ansible/reviewdog:latest
4345
- name: run reviewdog checks

templates/.github/workflows/30-release-and-build.yaml.j2

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,20 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v6
20+
# v6 https://github.com/actions/checkout/commit/de0fac2e4500dabe0009e67214ff5f5447ce83dd
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
2122
with:
2223
fetch-depth: 0
2324

24-
- uses: docker/setup-qemu-action@v3
25+
- uses: docker/setup-qemu-action@v4
26+
with:
27+
image: tonistiigi/binfmt:qemu-v10.2.1@sha256:d3b963f787999e6c0219a48dba02978769286ff61a5f4d26245cb6a6e5567ea3
28+
platforms: linux/amd64
2529

26-
- uses: docker/setup-buildx-action@v3
30+
- uses: docker/setup-buildx-action@v4
31+
with:
32+
driver-opts: network=host,image=moby/buildkit:v0.28.0@sha256:37539dd4d60fc70968d164d3850d903a2c56f6402214a1953fbf9fcb81ada731
33+
platforms: linux/amd64
2734

2835
- name: Semantic release
2936
id: semantic-release
@@ -35,7 +42,7 @@ jobs:
3542
echo "release-version=$(cat .gitrelease)" >> "$GITHUB_OUTPUT"
3643

3744
- id: meta
38-
uses: docker/metadata-action@v5
45+
uses: docker/metadata-action@v6
3946
with:
4047
images: |
4148
ghcr.io/${{ github.repository }}
@@ -44,7 +51,8 @@ jobs:
4451
type=raw,value=latest,enable={{is_default_branch}}
4552
type=raw,value=${{ steps.semantic-release.outputs.release-version }}
4653

47-
- uses: docker/login-action@v3
54+
# v4 https://github.com/docker/login-action/commit/b45d80f862d83dbcd57f89517bcf500b2ab88fb2
55+
- uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2
4856
with:
4957
registry: ghcr.io
5058
username: ${{ github.actor }}

templates/.github/workflows/90-cleanup.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515

1616
steps:
1717
- name: Keep last 5 published container images
18-
uses: actions/delete-package-versions@v5
18+
# v5 https://github.com/actions/delete-package-versions/commit/e5bc658cc4c965c472efe991f8beea3981499c55
19+
uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55
1920
with:
2021
package-name: ${{ github.event.repository.name }}
2122
package-type: container

templates/.github/workflows/auto-label-pull-request.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Label pull requests based on conventional commits
17-
uses: actions/github-script@v7
17+
# v8 https://github.com/actions/github-script/commit/ed597411d8f924073f98dfc5c65a23a2325f34cd
18+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
1819
with:
1920
github-token: ${{ secrets.GITHUB_TOKEN }}
2021
script: |

templates/.github/workflows/auto-merge-dependabot-prs.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
1616
steps:
1717
- id: metadata
18-
uses: dependabot/fetch-metadata@v2
18+
# v2 https://github.com/dependabot/fetch-metadata/commit/21025c705c08248db411dc16f3619e6b5f9ea21a
19+
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a
1920

2021
- if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
2122
run: gh pr merge --merge "$PR_URL"

templates/.github/workflows/auto-run-repo-ansible.yaml.j2

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- if: ${{ env.IS_PULL_REQUEST == '0' }}
32-
uses: actions/checkout@v6
32+
# v6 https://github.com/actions/checkout/commit/de0fac2e4500dabe0009e67214ff5f5447ce83dd
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
3334

3435
- if: ${{ env.IS_PULL_REQUEST == '1' }}
35-
uses: actions/checkout@v6
36+
# v6 https://github.com/actions/checkout/commit/de0fac2e4500dabe0009e67214ff5f5447ce83dd
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
3638
with:
3739
ref: refs/pull/${{ github.event.pull_request.number }}/merge
3840

@@ -65,7 +67,8 @@ jobs:
6567
6668
- if: ${{ env.IS_PULL_REQUEST == '1' && env.REPOSITORY_CHANGED == '1' }}
6769
name: bot comment about repo-ansible detected changes
68-
uses: actions/github-script@v7
70+
# v8 https://github.com/actions/github-script/commit/ed597411d8f924073f98dfc5c65a23a2325f34cd
71+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
6972
with:
7073
script: |
7174
const changes = process.env.REPO_ANSIBLE_OUTPUT

0 commit comments

Comments
 (0)