Add Plumber to watch workflow security #1
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: Plumber | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| plumber: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| security-events: write | |
| # Needed by score-push to publish the score for the README badge. | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: getplumber/plumber@87ca135cc4566ba8e9065ea95b5d897232cdb208 # v0.4.16 | |
| with: | |
| # Code scanning upload needs security-events write, which PRs | |
| # from forks do not get. The report stays available as a | |
| # workflow artifact there. | |
| upload-sarif: ${{ github.event.pull_request.head.repo.fork != true }} | |
| # Publishes the score to score.getplumber.io, which feeds the | |
| # badge in the README. A failed push never fails the run. | |
| score-push: true |