Skip to content

Commit 672dca9

Browse files
committed
Use a verified age release for the runner encryption test
1 parent 3e2655b commit 672dca9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/encrypted-blub.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ jobs:
1717
persist-credentials: false
1818
- name: Encrypt blub on the runner
1919
run: |
20-
sudo apt-get update -qq
21-
sudo apt-get install -y --no-install-recommends age
20+
archive="$RUNNER_TEMP/age.tar.gz"
21+
curl --fail --silent --show-error --location --retry 3 \
22+
https://github.com/FiloSottile/age/releases/download/v1.3.1/age-v1.3.1-linux-amd64.tar.gz -o "$archive"
23+
printf '%s %s\n' bdc69c09cbdd6cf8b1f333d372a1f58247b3a33146406333e30c0f26e8f51377 "$archive" | sha256sum --check --status
24+
tar -xzf "$archive" -C "$RUNNER_TEMP" age/age
2225
umask 077
23-
bin/write-encrypted-blub > "$RUNNER_TEMP/blub.age"
26+
PATH="$RUNNER_TEMP/age:$PATH" bin/write-encrypted-blub > "$RUNNER_TEMP/blub.age"
2427
- name: Load the RPM SSH key
2528
uses: webfactory/ssh-agent@d4b9b8ff72958532804b70bbe600ad43b36d5f2e # v0.8.0
2629
with:

0 commit comments

Comments
 (0)