Skip to content

Commit

Permalink
Merge pull request #344 from AkihiroSuda/ci-gh-attestation
Browse files Browse the repository at this point in the history
CI: Lima: check gh attestation
  • Loading branch information
AkihiroSuda authored Dec 3, 2024
2 parents 71c9906 + 10b2288 commit 31887a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,16 @@ jobs:
sudo chown $(whoami) /dev/kvm
- name: "Install Lima"
env:
GITHUB_TOKEN: ${{ github.token }} # required by `gh attestation verify`
run: |
set -eux
LIMA_VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
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 -
FILE="lima-${LIMA_VERSION:1}-Linux-x86_64.tar.gz"
curl -fOSL https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/${FILE}
gh attestation verify --owner=lima-vm "${FILE}"
sudo tar Cxzvf /usr/local "${FILE}"
rm -f "${FILE}"
- name: "Cache ~/.cache/lima"
uses: actions/cache@v4
Expand Down

0 comments on commit 31887a8

Please sign in to comment.