OSPS Baseline Scan #2
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: OSPS Baseline Scan | |
| on: [workflow_dispatch] | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Pull the pvtr-github-repo image | |
| run: docker pull eddieknight/pvtr-github-repo:latest | |
| - name: Add GitHub Secret to config file so it is protected in outputs | |
| run: | | |
| sed -i 's/{{ TOKEN }}/${{ secrets.TOKEN }}/g' ${{ github.workspace }}/.github/pvtr-config.yml | |
| - name: Scan all repos specified in .github/pvtr-config.yml | |
| run: | | |
| docker run --rm \ | |
| -v ${{ github.workspace }}/.github/pvtr-config.yml:/.privateer/config.yml \ | |
| -v ${{ github.workspace }}/docker_output:/evaluation_results \ | |
| eddieknight/pvtr-github-repo:latest |