BST-17999 Add the github-actions scan tests #8
Workflow file for this run
This file contains hidden or 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
| name: Scan Tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: ['scanners/**'] | |
| jobs: | |
| github-action: | |
| name: Github Actions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate GitHub App Token | |
| id: github-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.BOOST_SCAN_RUNNER_GITHUB_APP_ID }} | |
| private-key: ${{ secrets.BOOST_SCAN_RUNNER_GITHUB_APP_PRIVATE_KEY }} | |
| owner: boostsecurityio | |
| repositories: scan-test-runner-gitbub-actions | |
| - name: Checkout scanner registry | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Need full history to detect changes | |
| - name: Run Tests | |
| uses: boostsecurityio/scan-test-action@2410d5ae4661d6dbe63a744b037aae9db7bd066e | |
| with: | |
| provider: github-actions | |
| provider-config: | | |
| { | |
| "token": "${{ steps.github-token.outputs.token }}", | |
| "owner": "boostsecurityio", | |
| "repo": "scan-test-runner-gitbub-actions", | |
| "workflow_id": "test-scanner.yml" | |
| } | |
| registry-repo: "${{ github.repository_owner }}/${{ github.event.repository.name }}" | |
| base-ref: "${{ github.base_ref }}" |