Skip to content

Commit

Permalink
ci: add discovery scan tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Dec 20, 2024
1 parent 78f5124 commit 05ed365
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,37 @@ permissions:
packages: read

jobs:
run-api-discovery:
name: API Discovery
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run Server
run: docker run -d -p 8080:8080 ghcr.io/cerberauth/api-vulns-challenges/discoverable:latest

- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: VulnAPI
id: vulnapi
run: |
go run main.go discover api http://localhost:8080 --sqa-opt-out
- name: Stop Server
if: ${{ always() }}
run: docker stop $(docker ps -q --filter ancestor=ghcr.io/cerberauth/api-vulns-challenges/discoverable:latest)

run-jwt-scans:
name: JWT Scans
runs-on: ubuntu-latest
Expand Down

0 comments on commit 05ed365

Please sign in to comment.