mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-11-22 17:34:47 +08:00
The action moves from v0.4.8 to v0.7.16. The badge page has read "unknown" since July although every run reports the score as published; the current release publishes in the format the page serves, and it also analyses the composite actions under .github/actions. .plumber.yaml becomes an overlay on the CLI's built-in defaults, so the controls added since v0.4.8 apply without copying the whole template again. The trusted action list stays, the nix installer included. The perf-fmt image is exempt from the forbidden tag check while it tracks :latest, an exemption the CLI added in v0.6.4. The rustup download inside .github/actions/install and the archived CLA action keep their exceptions, with the reason next to each. The gate moves from the all-or-nothing default to 85 points, so one small finding never blocks a pull request, and the job gets the actions read scope the action documents.
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: plumber
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
plumber:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
# Lets Plumber read the workflow states and one run log to prove
|
|
# the token scope.
|
|
actions: read
|
|
security-events: write
|
|
# Lets the run publish the score for the README badge via OIDC,
|
|
# no secret involved.
|
|
id-token: write
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: getplumber/plumber@e9ad2dc6d6faa2dfd84395aac18e461284062640 # v0.7.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 }}
|
|
# Feeds the score badge in the README. The badge service only
|
|
# keeps the default branch score (verified from the OIDC
|
|
# token), and 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
|