Skip to content

Commit

Permalink
tests(action): add test for scan-docker image action
Browse files Browse the repository at this point in the history
Co-Authored-by: saisatishkarra <[email protected]>
  • Loading branch information
gszr and saisatishkarra committed Apr 18, 2023
1 parent 396a2e4 commit 8d0f0ad
Showing 1 changed file with 27 additions and 0 deletions.
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

0 comments on commit 8d0f0ad

Please sign in to comment.