From cdc66231f8296cdeaba33c692c9269d4123becf2 Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Sat, 18 Jan 2025 16:37:24 +0100 Subject: [PATCH 1/2] ci: fix snapcraft cli install --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a20a148..0127781 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,10 +94,13 @@ jobs: - name: Install Snapcraft run: | sudo apt-get --quiet update - sudo apt-get --no-install-suggests --no-install-recommends --quiet --yes install musl-tools snapcraft - sudo snap refresh snapcraft --revision 11040 + sudo apt-get --no-install-suggests --no-install-recommends --quiet --yes install musl-tools snapd + sudo snap install snapcraft --classic + snapcraft status vulnapi mkdir -p $HOME/.cache/snapcraft/download mkdir -p $HOME/.cache/snapcraft/stage-packages + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} - name: install chocolatey run: | From 4fe31178f71fa7c31686dc216c300f2963cb663e Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Sat, 18 Jan 2025 17:09:05 +0100 Subject: [PATCH 2/2] ci: fix chocolatey cli install --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0127781..a20a422 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,14 +104,22 @@ jobs: - name: install chocolatey run: | + sudo apt-get --quiet update + sudo apt-get --no-install-suggests --no-install-recommends --quiet --yes install dirmngr ca-certificates gnupg + sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF + echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list + sudo apt-get --quiet update + sudo apt-get --no-install-suggests --no-install-recommends --quiet --yes install mono-devel mkdir -p /opt/chocolatey wget -q -O - "https://github.com/chocolatey/choco/releases/download/${CHOCOLATEY_VERSION}/chocolatey.v${CHOCOLATEY_VERSION}.tar.gz" | tar -xz -C "/opt/chocolatey" echo '#!/bin/bash' >> /usr/local/bin/choco echo 'mono /opt/chocolatey/choco.exe $@' >> /usr/local/bin/choco chmod +x /usr/local/bin/choco choco upgrade chocolatey + choco info vulnapi env: - CHOCOLATEY_VERSION: 2.2.2 + CHOCOLATEY_VERSION: 2.4.1 + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} - uses: goreleaser/goreleaser-action@v6 with: