Skip to content

Commit dc6e693

Browse files
GeneralZeroARR4N
andauthored
chore: Pinning github actions not owned by github (#281)
## Why this should be merged Reduce surface area of supply-chain attack vectors. ## How this works Pin CI actions to specific commit hashes instead of version tags. ## How this was tested CI run. Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
1 parent 9c64963 commit dc6e693

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

.github/workflows/labels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
issues: write
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
26-
- uses: crazy-max/ghaction-github-labeler@v5
25+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
26+
- uses: crazy-max/ghaction-github-labeler@24d110aa46a59976b8a7f35518cb7f14f434c916 # v5
2727
with:
2828
dry-run: ${{ github.event_name == 'pull_request' }}

.github/workflows/lint.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
golangci-lint:
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3333
with:
3434
fetch-depth: 0 # Required for go-header check https://github.com/golangci/golangci-lint/issues/2470#issuecomment-1473658471
35-
- uses: actions/setup-go@v5
35+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
3636
with:
3737
go-version-file: "go.mod"
3838
- name: goheader
@@ -41,29 +41,29 @@ jobs:
4141
# (see only-new-issues: true). It is disabled in .golangci.yml because
4242
# golangci-lint running locally is not aware of new/modified files compared to the base
4343
# commit of a pull request, and we want to avoid reporting invalid goheader errors.
44-
uses: golangci/golangci-lint-action@v6
44+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6
4545
with:
4646
version: v1.64.8
4747
install-mode: goinstall
4848
only-new-issues: true
4949
args: --enable-only goheader
5050
- name: golangci-lint
51-
uses: golangci/golangci-lint-action@v6
51+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6
5252
with:
5353
version: v1.64.8
5454
install-mode: goinstall
5555

5656
yamllint:
5757
runs-on: ubuntu-latest
5858
steps:
59-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6060
- run: yamllint -c .yamllint.yml .
6161

6262
shellcheck:
6363
runs-on: ubuntu-latest
6464
steps:
65-
- uses: actions/checkout@v4
65+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6666
- name: Run ShellCheck
67-
uses: ludeeus/action-shellcheck@2.0.0
67+
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0
6868
with:
6969
scandir: './libevm'

crypto/secp256k1/libsecp256k1/.github/workflows/ci.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: Set up Docker Buildx
52-
uses: docker/setup-buildx-action@v3
52+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
5353
with:
5454
# See: https://github.com/moby/buildkit/issues/3969.
5555
driver-opts: |
5656
network=host
5757
5858
- name: Build container
59-
uses: docker/build-push-action@v5
59+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
6060
with:
6161
file: ./ci/linux-debian.Dockerfile
6262
tags: linux-debian-image
@@ -98,7 +98,7 @@ jobs:
9898

9999
steps:
100100
- name: Checkout
101-
uses: actions/checkout@v4
101+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
102102

103103
- name: CI script
104104
env: ${{ matrix.configuration.env_vars }}
@@ -149,7 +149,7 @@ jobs:
149149

150150
steps:
151151
- name: Checkout
152-
uses: actions/checkout@v4
152+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
153153

154154
- name: CI script
155155
uses: ./.github/actions/run-in-docker-action
@@ -195,7 +195,7 @@ jobs:
195195

196196
steps:
197197
- name: Checkout
198-
uses: actions/checkout@v4
198+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
199199

200200
- name: CI script
201201
uses: ./.github/actions/run-in-docker-action
@@ -248,7 +248,7 @@ jobs:
248248

249249
steps:
250250
- name: Checkout
251-
uses: actions/checkout@v4
251+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
252252

253253
- name: CI script
254254
env: ${{ matrix.configuration.env_vars }}
@@ -305,7 +305,7 @@ jobs:
305305

306306
steps:
307307
- name: Checkout
308-
uses: actions/checkout@v4
308+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
309309

310310
- name: CI script
311311
env: ${{ matrix.configuration.env_vars }}
@@ -352,7 +352,7 @@ jobs:
352352

353353
steps:
354354
- name: Checkout
355-
uses: actions/checkout@v4
355+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
356356

357357
- name: CI script
358358
uses: ./.github/actions/run-in-docker-action
@@ -407,7 +407,7 @@ jobs:
407407

408408
steps:
409409
- name: Checkout
410-
uses: actions/checkout@v4
410+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
411411

412412
- name: CI script
413413
env: ${{ matrix.configuration.env_vars }}
@@ -464,7 +464,7 @@ jobs:
464464

465465
steps:
466466
- name: Checkout
467-
uses: actions/checkout@v4
467+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
468468

469469
- name: CI script
470470
env: ${{ matrix.configuration.env_vars }}
@@ -528,7 +528,7 @@ jobs:
528528

529529
steps:
530530
- name: Checkout
531-
uses: actions/checkout@v4
531+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
532532

533533
- name: CI script
534534
env: ${{ matrix.configuration.env_vars }}
@@ -584,7 +584,7 @@ jobs:
584584

585585
steps:
586586
- name: Checkout
587-
uses: actions/checkout@v4
587+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
588588

589589
- name: CI script
590590
env: ${{ matrix.configuration.env_vars }}
@@ -638,7 +638,7 @@ jobs:
638638

639639
steps:
640640
- name: Checkout
641-
uses: actions/checkout@v4
641+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
642642

643643
- name: Install Homebrew packages
644644
run: |
@@ -697,7 +697,7 @@ jobs:
697697

698698
steps:
699699
- name: Checkout
700-
uses: actions/checkout@v4
700+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
701701

702702
- name: Install Homebrew packages
703703
run: |
@@ -749,7 +749,7 @@ jobs:
749749

750750
steps:
751751
- name: Checkout
752-
uses: actions/checkout@v4
752+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
753753

754754
- name: Generate buildsystem
755755
run: cmake -E env CFLAGS="/WX ${{ matrix.configuration.cpp_flags }}" cmake -B build -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON ${{ matrix.configuration.cmake_options }}
@@ -777,10 +777,10 @@ jobs:
777777

778778
steps:
779779
- name: Checkout
780-
uses: actions/checkout@v4
780+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
781781

782782
- name: Add cl.exe to PATH
783-
uses: ilammy/msvc-dev-cmd@v1
783+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1
784784

785785
- name: C++ (public headers)
786786
run: |
@@ -805,7 +805,7 @@ jobs:
805805

806806
steps:
807807
- name: Checkout
808-
uses: actions/checkout@v4
808+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
809809

810810
- name: CI script
811811
uses: ./.github/actions/run-in-docker-action
@@ -838,7 +838,7 @@ jobs:
838838

839839
steps:
840840
- name: Checkout
841-
uses: actions/checkout@v4
841+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
842842

843843
- name: CI script
844844
uses: ./.github/actions/run-in-docker-action
@@ -858,7 +858,7 @@ jobs:
858858

859859
steps:
860860
- name: Checkout
861-
uses: actions/checkout@v4
861+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
862862

863863
- name: CI script
864864
run: |
@@ -870,7 +870,7 @@ jobs:
870870

871871
steps:
872872
- name: Checkout
873-
uses: actions/checkout@v4
873+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
874874

875875
- run: ./autogen.sh && ./configure --enable-dev-mode && make distcheck
876876

0 commit comments

Comments
 (0)