Skip to content

Commit

Permalink
chore: Bumps artefact actions to v4 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume authored Jan 17, 2024
1 parent ceff7e7 commit d71957c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
sudo snap install yq
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: rock

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish-rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
workflow_call:

jobs:

publish-rock:
runs-on: ubuntu-22.04
steps:
Expand All @@ -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

Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/scan-rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
workflow_call:

jobs:

scan:
runs-on: ubuntu-22.04
steps:
Expand All @@ -19,7 +18,7 @@ jobs:
run: |
sudo snap install yq
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: rock

Expand All @@ -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"

0 comments on commit d71957c

Please sign in to comment.