From 7d9767f67fc3fa6b62c71fbd952a738ad91c12bb Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Tue, 2 Jan 2024 11:22:19 -0500 Subject: [PATCH] chore: Bumps CI workflow upload to v4 --- .github/workflows/build-rock.yaml | 2 +- .github/workflows/publish-rock.yaml | 3 +-- .github/workflows/scan-rock.yaml | 9 ++++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-rock.yaml b/.github/workflows/build-rock.yaml index 76c9669..a7eda9f 100644 --- a/.github/workflows/build-rock.yaml +++ b/.github/workflows/build-rock.yaml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v4 - uses: canonical/craft-actions/rockcraft-pack@main id: rockcraft - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: rock path: ${{ steps.rockcraft.outputs.rock }} diff --git a/.github/workflows/publish-rock.yaml b/.github/workflows/publish-rock.yaml index 4f344a8..0de6fa6 100644 --- a/.github/workflows/publish-rock.yaml +++ b/.github/workflows/publish-rock.yaml @@ -4,7 +4,6 @@ on: workflow_call: jobs: - publish-rock: runs-on: ubuntu-22.04 steps: @@ -21,7 +20,7 @@ jobs: - name: Install skopeo run: | sudo snap install --devmode --channel edge skopeo - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: rock diff --git a/.github/workflows/scan-rock.yaml b/.github/workflows/scan-rock.yaml index 9209c0b..3cb0efc 100644 --- a/.github/workflows/scan-rock.yaml +++ b/.github/workflows/scan-rock.yaml @@ -4,7 +4,6 @@ on: workflow_call: jobs: - scan: runs-on: ubuntu-22.04 steps: @@ -19,7 +18,7 @@ jobs: run: | sudo snap install yq - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: rock @@ -40,10 +39,10 @@ jobs: uses: aquasecurity/trivy-action@master with: image-ref: "ghcr.io/canonical/${{env.image_name}}:${{env.version}}" - format: 'sarif' - output: 'trivy-results.sarif' + format: "sarif" + output: "trivy-results.sarif" - name: Upload Trivy scan results to GitHub Security tab uses: github/codeql-action/upload-sarif@v3 with: - sarif_file: 'trivy-results.sarif' + sarif_file: "trivy-results.sarif"