Skip to content

Commit 2ec77dc

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 280fabd commit 2ec77dc

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/haskell.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ name: Haskell CI
22

33
on:
44
push:
5-
branches:
6-
- "*"
7-
pull_request:
8-
branches: ["master"]
5+
workflow_dispatch:
96

107
permissions:
118
contents: read
@@ -15,8 +12,8 @@ jobs:
1512
runs-on: ubuntu-latest
1613

1714
steps:
18-
- uses: actions/checkout@v3
19-
- uses: haskell-actions/run-fourmolu@v9
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- uses: haskell-actions/run-fourmolu@3b7702b41516aa428dfe6e295dc73476ae58f69e # v11
2017
with:
2118
version: "0.14.0.0"
2219
build:
@@ -29,10 +26,10 @@ jobs:
2926
ghc-version: ["9.12", "9.10", "9.8", "9.6", "9.4", "9.2"]
3027

3128
steps:
32-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3330

3431
- name: Set up GHC ${{ matrix.ghc-version }}
35-
uses: haskell-actions/setup@v2
32+
uses: haskell-actions/setup@96f3dafd067155f32643c2a0757ab71d2910e2c2 # v2.8.0
3633
id: setup
3734
with:
3835
ghc-version: ${{ matrix.ghc-version }}
@@ -54,7 +51,7 @@ jobs:
5451
cabal build --dry-run
5552
5653
- name: Restore cached dependencies
57-
uses: actions/cache/restore@v4
54+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
5855
id: cache
5956
env:
6057
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
@@ -67,7 +64,7 @@ jobs:
6764
run: cabal build --only-dependencies
6865

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

0 commit comments

Comments
 (0)