Skip to content

Pin GitHub Actions to commit SHAs and declare workflow permissions #2

Pin GitHub Actions to commit SHAs and declare workflow permissions

Pin GitHub Actions to commit SHAs and declare workflow permissions #2

Workflow file for this run

name: Plumber
on:
push:
branches: [master]
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@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
- uses: getplumber/plumber@7ad9d267ee5a00163cec9e5c749a088d5f565167 # v0.4.26
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
# Gate at 85 points instead of the all-or-nothing default,
# leaves room for a small finding without blocking PRs.
min-points: 85