From 49c26b2db6f20ef3014b6eedbbbe39faf4014691 Mon Sep 17 00:00:00 2001 From: Guilherme Salazar Date: Tue, 18 Apr 2023 18:05:09 -0300 Subject: [PATCH] tests(action) add test for scan-docker image action Co-Authored-by: saisatishkarra --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..1cec9598 --- /dev/null +++ b/.github/workflows/test.yml @@ -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