Skip to content

Commit

Permalink
update download and upload action to v4 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
saisatishkarra authored Jan 22, 2024
1 parent 7e403ca commit 5c5396e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion code-check-actions/lua-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:

- name: Upload results to workflow
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: luacheck_results.zip
path: |
Expand Down
12 changes: 6 additions & 6 deletions security-actions/scan-docker-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
version: ${{ env.RELEASE_TAG }}
publish: true
commitish: ${{ github.sha }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/sbom-artifacts
- uses: AButler/[email protected]
Expand All @@ -217,7 +217,7 @@
```
- Using action to scan single platform docker image as a job within a workflow
- Uses *actions/upload-artifact@v3* and *actions/download-artifact@v3* to share docker archives across jobs
- Uses *actions/upload-artifact@v4* and *actions/download-artifact@v4* to share docker archives across jobs
- On successful workflow completion, delete the Docker Archive workflow artifact at the end; otherwise retain for a 1 day at most
- Better visualization using separate scan job in the pipeline
Expand Down Expand Up @@ -274,7 +274,7 @@
tags: ${{ steps.meta.outputs.tags }}
outputs: "type=docker,dest=${{ env.DOCKER_OCI_ARCHIVE }}.tar" # Supports only single platform images
- name: Upload Docker OCI layout TAR Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.DOCKER_OCI_ARCHIVE }}
path: ${{ env.DOCKER_OCI_ARCHIVE }}.tar
Expand All @@ -294,7 +294,7 @@
buildx-tags: ${{ needs.docker-build.outputs.buildx-tags }}
steps:
- name: Download OCI docker TAR artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.DOCKER_OCI_ARCHIVE }}
path: ${{ github.workspace }}/${{ env.DOCKER_OCI_ARCHIVE }}
Expand Down Expand Up @@ -323,7 +323,7 @@
version: ${{ env.RELEASE_TAG }}
publish: true
commitish: ${{ github.sha }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/sbom-artifacts
- run: |
Expand Down Expand Up @@ -460,7 +460,7 @@
version: ${{ env.RELEASE_TAG }}
publish: true
commitish: ${{ github.sha }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/sbom-artifacts
- run: |
Expand Down
2 changes: 1 addition & 1 deletion security-actions/scan-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ runs:
- name: Publish SARIF to github workflow artifact
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.meta.outputs.grype_sarif_file }}
path: |
Expand Down
2 changes: 1 addition & 1 deletion security-actions/semgrep/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
# Upload grype cve reports
- name: Upload Semgrep SARIF to Workflow
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: semgrep_sast.zip
path: |
Expand Down
5 changes: 3 additions & 2 deletions security-actions/sign-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ runs:
done
# Upload Cosign Artifacts (public cert and signatures)
# Uploaded artifact name must be unique across each workflow run / job
- name: Upload Cosign Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ inputs.local_save_cosign_assets == 'true' && inputs.cosign_output_prefix != '' }}
with:
name: signed-image-assets
name: signed-image-assets-${{inputs.cosign_output_prefix}}
path: |
${{inputs.cosign_output_prefix}}*.crt
${{inputs.cosign_output_prefix}}.sig*
Expand Down

0 comments on commit 5c5396e

Please sign in to comment.