Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sbom-action): bump sbom action to 0.13.4 #15

Merged
merged 2 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test Shared Actions

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
test-scan-docker-image:
name: Test Scan Docker Image
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Login to DockerHub
if: success()
uses: docker/login-action@v2
with:
username: ${{ secrets.GHA_DOCKERHUB_PULL_USER }}
password: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUBLIC_TOKEN }}

- uses: ./security-actions/scan-docker-image
with:
image: kong/kong-gateway-dev:latest # no particular reason for the choice of image or tag, just an image for tests
4 changes: 2 additions & 2 deletions security-actions/scan-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ runs:

# Must upload artifact for output file parameter to have effect
- name: Generate SPDX SBOM Using Syft
uses: anchore/[email protected].3
uses: anchore/[email protected].4
id: sbom_spdx
with:
image: ${{ steps.meta.outputs.scan_image }}
Expand All @@ -87,7 +87,7 @@ runs:
dependency-snapshot: false

- name: Generate CycloneDX SBOM Using Syft
uses: anchore/[email protected].3
uses: anchore/[email protected].4
id: sbom_cyclonedx
with:
image: ${{ steps.meta.outputs.scan_image }}
Expand Down