From 2bafcb03a452887166e839d1ee2de4965a4bffab Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Tue, 17 Oct 2023 00:59:51 -0400 Subject: [PATCH 1/2] ci(scorecard): ensure apt install is approved --- .github/workflows/test-ci-reusable.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-ci-reusable.yml b/.github/workflows/test-ci-reusable.yml index b4acc1c4..5fdc237a 100644 --- a/.github/workflows/test-ci-reusable.yml +++ b/.github/workflows/test-ci-reusable.yml @@ -64,8 +64,8 @@ jobs: run: | echo "deb $OPENSUSE_UNOFFICIAL_LIBCONTAINERS_SOURCE_URL/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list curl -fsSL $OPENSUSE_UNOFFICIAL_LIBCONTAINERS_KEY_URL | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg - sudo apt update - sudo apt install podman + sudo apt -y update + sudo apt -y install podman - name: Build scorecard image for test run: | CUSTOM_SCORECARD_IMG=ghcr.io/${{ github.repository_owner }}/cryostat-operator-scorecard:${{ inputs.tag }} \ From 2dec374c7013881c001a43cd8391add59b35456d Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Tue, 17 Oct 2023 01:20:32 -0400 Subject: [PATCH 2/2] ci(controller-test): remove manual cache actions --- .github/workflows/test-ci-reusable.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/test-ci-reusable.yml b/.github/workflows/test-ci-reusable.yml index 5fdc237a..a697ff36 100644 --- a/.github/workflows/test-ci-reusable.yml +++ b/.github/workflows/test-ci-reusable.yml @@ -42,14 +42,6 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '1.20.*' - - uses: actions/cache@v3 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - name: Run controller tests run: make test-envtest