Skip to content

Commit 01f4079

Browse files
committed
Switch to hash-pinned GitHub Actions
Done using `GH_TOKEN=$(gh auth token) zizmor . --fix=all`.
1 parent 09a6a5f commit 01f4079

9 files changed

Lines changed: 28 additions & 23 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
outputs:
3232
artifact_id: ${{ steps.upload.outputs.artifact-id }}
3333
steps:
34-
- uses: actions/checkout@v7.0.1
34+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3535
with:
3636
persist-credentials: false
37-
- uses: actions/setup-python@v7
37+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3838
with:
3939
python-version: ${{ matrix.versions.python }}
4040
- name: Build SecureDrop packages
@@ -46,7 +46,7 @@ jobs:
4646
- name: Build admin packages
4747
run: |
4848
OS_VERSION=${{ matrix.versions.ubuntu }} WHAT=admin ./builder/build-debs.sh
49-
- uses: actions/upload-artifact@v7
49+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5050
id: upload
5151
with:
5252
name: ${{ matrix.versions.ubuntu }}-${{ matrix.build }}
@@ -66,7 +66,7 @@ jobs:
6666
run: |
6767
apt-get update && apt-get install --yes diffoscope-minimal xz-utils \
6868
--no-install-recommends
69-
- uses: actions/download-artifact@v8
69+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
7070
with:
7171
pattern: "${{ matrix.ubuntu_version }}-*"
7272
- name: diffoscope

.github/workflows/cargo-vet.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
env:
2222
CARGO_VET_VERSION: 0.10.2
2323
steps:
24-
- uses: actions/checkout@v7.0.1
24+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2525
with:
2626
persist-credentials: false
27-
- uses: actions/cache@v6.1.0
27+
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
2828
id: cache-vet
2929
with:
3030
path: /usr/local/cargo/bin/cargo-vet

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install Git
2929
run: |
3030
apt-get update && apt-get install --yes git
31-
- uses: actions/checkout@v7.0.1
31+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3232
with:
3333
persist-credentials: false
3434
- name: Install dependencies
@@ -55,7 +55,7 @@ jobs:
5555
ubuntu_version:
5656
- noble
5757
steps:
58-
- uses: actions/checkout@v7.0.1
58+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5959
with:
6060
persist-credentials: false
6161
- name: Build image
@@ -73,7 +73,7 @@ jobs:
7373
ubuntu_version:
7474
- noble
7575
steps:
76-
- uses: actions/checkout@v7.0.1
76+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
7777
with:
7878
persist-credentials: false
7979
- name: Build image
@@ -91,7 +91,7 @@ jobs:
9191
ubuntu_version:
9292
- noble
9393
steps:
94-
- uses: actions/checkout@v7.0.1
94+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
9595
with:
9696
persist-credentials: false
9797
- name: Build image
@@ -112,7 +112,7 @@ jobs:
112112
# Keep version in sync with rust-toolchain.toml
113113
container: rust:1.96.0
114114
steps:
115-
- uses: actions/checkout@v7.0.1
115+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
116116
with:
117117
persist-credentials: false
118118
- name: Install dependencies
@@ -127,7 +127,7 @@ jobs:
127127
admin-tests:
128128
runs-on: ubuntu-latest
129129
steps:
130-
- uses: actions/checkout@v7.0.1
130+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
131131
with:
132132
persist-credentials: false
133133
- name: Run tests

.github/workflows/demo-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
env:
3333
DOCKERIZE_VERSION: v0.6.1
3434
steps:
35-
- uses: actions/checkout@v7.0.1
35+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3636
with:
3737
persist-credentials: false
3838
- name: Download artifact
39-
uses: actions/download-artifact@v8
39+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4040
with:
4141
name: ${{ needs.build.outputs.artifact-name }}
4242
- name: Restore container image

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: 'Checkout Repository'
12-
uses: actions/checkout@v7.0.1
12+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1313
with:
1414
persist-credentials: false
1515
- name: 'Dependency Review'
16-
uses: actions/dependency-review-action@v5.0.0
16+
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0

.github/workflows/security.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Keep version in sync with rust-toolchain.toml
1818
container: rust:1.96.0
1919
steps:
20-
- uses: actions/checkout@v7.0.1
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121
with:
2222
persist-credentials: false
2323
- name: Check Rust dependencies
@@ -27,10 +27,10 @@ jobs:
2727
static-analysis:
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: actions/checkout@v7.0.1
30+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3131
with:
3232
persist-credentials: false
33-
- uses: actions/setup-python@v7
33+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3434
with:
3535
python-version: '3.12'
3636
- name: Install dependencies

.github/workflows/staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
2222
UBUNTU_VERSION: ${{ matrix.ubuntu_version }}
2323
steps:
24-
- uses: actions/checkout@v7.0.1
24+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2525
with:
2626
persist-credentials: false
2727
- name: Run staging tests on GCE

.github/workflows/translation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
GITHUB_ACTOR: ${{ github.actor }}
2626
steps:
27-
- uses: actions/checkout@v7.0.1
27+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2828
with:
2929
persist-credentials: false
3030
- name: Generate locale list
@@ -58,7 +58,7 @@ jobs:
5858
env:
5959
LOCALES: ${{ matrix.locale }}
6060
steps:
61-
- uses: actions/checkout@v7.0.1
61+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
6262
with:
6363
persist-credentials: false
6464
- name: Build image
@@ -68,7 +68,7 @@ jobs:
6868
run: |
6969
make translation-test
7070
- name: Save screenshots
71-
uses: actions/upload-artifact@v7
71+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7272
with:
7373
name: screenshots-${{ matrix.locale }}
7474
path: securedrop/tests/functional/pageslayout/screenshots/

.github/zizmor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ rules:
33
ignore:
44
# not used for releases / sensitive artifacts
55
- cargo-vet.yml
6+
unpinned-uses:
7+
config:
8+
policies:
9+
freedomofpress/actionslib/.github/workflows/oci-build.yaml: any
10+
freedomofpress/actionslib/.github/workflows/update-k8s-trigger.yaml: any

0 commit comments

Comments
 (0)