Skip to content

Commit 41b93cd

Browse files
committed
docs/examples/gha: verify GitHub Attestations
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 7cea6f8 commit 41b93cd

File tree

1 file changed

+7
-1
lines changed
  • website/content/en/docs/examples

1 file changed

+7
-1
lines changed

website/content/en/docs/examples/gha.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@ jobs:
4040
sudo chown $(whoami) /dev/kvm
4141
4242
- name: "Install Lima"
43+
env:
44+
GITHUB_TOKEN: ${{ github.token }} # required by `gh attestation verify`
4345
run: |
4446
set -eux
4547
LIMA_VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
46-
curl -fsSL https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/lima-${LIMA_VERSION:1}-Linux-x86_64.tar.gz | sudo tar Cxzvf /usr/local -
48+
FILE="lima-${LIMA_VERSION:1}-Linux-x86_64.tar.gz"
49+
curl -fOSL https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/${FILE}
50+
gh attestation verify --owner=lima-vm "${FILE}"
51+
sudo tar Cxzvf /usr/local "${FILE}"
52+
rm -f "${FILE}"
4753
4854
- name: "Cache ~/.cache/lima"
4955
uses: actions/cache@v4

0 commit comments

Comments
 (0)