diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml new file mode 100644 index 0000000..6f29bad --- /dev/null +++ b/.github/workflows/scan.yml @@ -0,0 +1,29 @@ +name: Scan + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + scan: + permissions: + security-events: write + contents: read + id-token: write + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + - name: Run endorctl + uses: endorlabs/github-action@b51bd06466b545f01a6ac788e3e1147695d3936c + with: + namespace: "demo" + api: "https://api.staging.endorlabs.com" + enable_github_action_token: "true" + sarif_file: findings.sarif + - name: Upload SARIF to github + uses: github/codeql-action/upload-sarif@9885f86fab4879632b7e44514f19148225dfbdcd + with: + sarif_file: findings.sarif