Skip to content

Commit

Permalink
Install snapd through apt
Browse files Browse the repository at this point in the history
This ensures that `yq` comes from a verified source.
  • Loading branch information
weyfonk authored and thardeck committed Jan 28, 2025
1 parent edb4925 commit 9a7eeb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release-against-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@ jobs:
go-version: '1.22.*'
- name: Install dependencies
run: |
# get latest URL from output line `< location: $URL`
latest=$(curl -v https://github.com/mikefarah/yq/releases/latest 2>&1 | grep location | cut -d' ' -f3)
URL=$(echo ${latest/tag/download} | tr -d '\r')
curl -fsL $URL/yq_linux_amd64.tar.gz | tar xz
sudo mv yq_linux_amd64 /usr/bin/yq
sudo apt-get update
sudo apt install -y --allow-change-held-packages snapd
sudo snap install yq --channel=v4/stable
- name: Run release script
run: |
export CHARTS_DIR="${GITHUB_WORKSPACE}/charts"
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release-against-test-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,9 @@ jobs:
- name: Install dependencies
run: |
# get latest URL from output line `< location: $URL`
latest=$(curl -v https://github.com/mikefarah/yq/releases/latest 2>&1 | grep location | cut -d' ' -f3)
URL=$(echo ${latest/tag/download} | tr -d '\r')
curl -fsL $URL/yq_linux_amd64.tar.gz | tar xz
sudo mv yq_linux_amd64 /usr/bin/yq
sudo apt-get update
sudo apt install -y --allow-change-held-packages snapd
sudo snap install yq --channel=v4/stable
- name: Run release script
run: |
Expand Down

0 comments on commit 9a7eeb7

Please sign in to comment.