-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(action): add test for scan-docker image action
Co-Authored-by: saisatishkarra <[email protected]>
- Loading branch information
1 parent
396a2e4
commit b37ae51
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |