Skip to content

Commit f3ff3f9

Browse files
committed
feat: Pin actions to hashes
Done with pin-github-action <https://github.com/mheap/pin-github-action> 1.8.0 using `npx pin-github-action .github/workflows/*.yml`, and then manually bumping the version tag to the relevant number. This fixes the issue that it is common practice for GitHub Actions authors to move major tags when releasing new minor versions. Dependabot supports updating in the same fashion, bumping the version tag when updating the hash.
1 parent d1ca217 commit f3ff3f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- macos-13
2222
runs-on: ${{ matrix.os }}
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2525
- name: Install Nix
2626
uses: ./
2727
with:
@@ -43,7 +43,7 @@ jobs:
4343
- macos-13
4444
runs-on: ${{ matrix.os }}
4545
steps:
46-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4747
- name: Install Nix
4848
uses: ./
4949
with:
@@ -62,7 +62,7 @@ jobs:
6262
- macos-13
6363
runs-on: ${{ matrix.os }}
6464
steps:
65-
- uses: actions/checkout@v4
65+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6666
- name: Install Nix
6767
uses: ./
6868
with:
@@ -83,7 +83,7 @@ jobs:
8383
- macos-13
8484
runs-on: ${{ matrix.os }}
8585
steps:
86-
- uses: actions/checkout@v4
86+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8787
- name: Install Nix
8888
uses: ./
8989
- run: nix flake show github:NixOS/nixpkgs
@@ -103,7 +103,7 @@ jobs:
103103
system: x86_64-darwin
104104
runs-on: ${{ matrix.os }}
105105
steps:
106-
- uses: actions/checkout@v4
106+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
107107
- name: Run NAR server
108108
run: |
109109
curl --location https://github.com/cachix/nar-toolbox/releases/download/v0.1.0/nar-toolbox-${{ matrix.system }} -O
@@ -128,7 +128,7 @@ jobs:
128128
- macos-13
129129
runs-on: ${{ matrix.os }}
130130
steps:
131-
- uses: actions/checkout@v4
131+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
132132
- name: Install Nix
133133
uses: ./
134134
with:
@@ -142,7 +142,7 @@ jobs:
142142
os: [ubuntu-latest]
143143
runs-on: ${{ matrix.os }}
144144
steps:
145-
- uses: actions/checkout@v4
145+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
146146
- run: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
147147
- run: docker pull ghcr.io/catthehacker/ubuntu:js-24.04
148148
- run: |

0 commit comments

Comments
 (0)