Skip to content

Commit 20e03f7

Browse files
committed
ci: update actions and pin to commit hash
+ Pinning to commit hash is better for security, since tags are mutable.
1 parent 7974191 commit 20e03f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/haskell.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: haskell-actions/run-fourmolu@v9
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
- uses: haskell-actions/run-fourmolu@3b7702b41516aa428dfe6e295dc73476ae58f69e # v11
2020
with:
2121
version: "0.14.0.0"
2222
build:
@@ -29,10 +29,10 @@ jobs:
2929
ghc-version: ["9.12", "9.10", "9.8", "9.6", "9.4", "9.2"]
3030

3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3333

3434
- name: Set up GHC ${{ matrix.ghc-version }}
35-
uses: haskell-actions/setup@v2
35+
uses: haskell-actions/setup@96f3dafd067155f32643c2a0757ab71d2910e2c2 # v2.8.0
3636
id: setup
3737
with:
3838
ghc-version: ${{ matrix.ghc-version }}
@@ -54,7 +54,7 @@ jobs:
5454
cabal build --dry-run
5555
5656
- name: Restore cached dependencies
57-
uses: actions/cache/restore@v4
57+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
5858
id: cache
5959
env:
6060
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
@@ -67,7 +67,7 @@ jobs:
6767
run: cabal build --only-dependencies
6868

6969
- name: Save cached dependencies
70-
uses: actions/cache/save@v4
70+
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
7171
if: steps.cache.outputs.cache-hit != 'true'
7272
with:
7373
path: ${{ steps.setup.outputs.cabal-store }}

0 commit comments

Comments
 (0)