diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index c3812d7d15e..efcd4780708 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -27,6 +27,9 @@ workflows: - 'actions/upload-artifact@v7.0.2' '.github/workflows/issue-metrics.yml': - 'github-community-projects/issue-metrics@v5.0.3' + '.github/workflows/plumber.yml': + - 'actions/checkout@v7.0.1' + - 'getplumber/plumber@v0.7.23' '.github/workflows/release-to-maven-central.yml': - 'actions/cache@v6.1.0' - 'actions/checkout@v7.0.1' @@ -61,6 +64,11 @@ dependencies: commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1' owner_id: 44036562 repo_id: 189476904 + 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9': + ref: 'v7.0.2' + commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9' + owner_id: 44036562 + repo_id: 192625955 'actions/upload-artifact@v7.0.2': ref: 'v7.0.2' commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9' @@ -73,11 +81,24 @@ dependencies: repo_id: 200299178 uses: - 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' + 'getplumber/plumber@v0.7.23': + ref: 'v0.7.23' + commit: 'sha1-ec8cb3a7edd6a324b33e85109b627b2df6023d94' + owner_id: 255179076 + repo_id: 1137327132 + uses: + - 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9' + - 'github/codeql-action@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee' 'github-community-projects/issue-metrics@v5.0.3': ref: 'v5.0.3' commit: 'sha1-671528652402b9b8a33da44b5c693b3161bc090f' owner_id: 151565802 repo_id: 648340231 + 'github/codeql-action@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee': + ref: 'v4.39.0' + commit: 'sha1-6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee' + owner_id: 9919 + repo_id: 259445878 'jamesives/github-pages-deploy-action@v4.9.0': ref: 'v4.9.0' commit: 'sha1-fa24774553152dd7873cd16ebd8d959b010c5445' diff --git a/.github/workflows/plumber.yml b/.github/workflows/plumber.yml new file mode 100644 index 00000000000..ffe69d6b76f --- /dev/null +++ b/.github/workflows/plumber.yml @@ -0,0 +1,38 @@ +name: Plumber + +on: + pull_request: + push: + branches: + - master + +concurrency: + group: plumber-${{ github.event.pull_request.head.ref || github.ref_name }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + plumber: + name: plumber-workflow-check + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + actions: read # read the workflow runs and one run log to prove the token scope of each job + security-events: write # list the findings under code scanning + steps: + - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false + + - name: Check the workflows with Plumber + uses: getplumber/plumber@v0.7.23 + with: + # Pull requests from forks get no security-events write, so the + # upload is skipped there. The report stays a workflow artifact. + upload-sarif: ${{ github.event.pull_request.head.repo.fork != true }} + # Fail under 85 points instead of on any finding, so one small + # finding does not block a pull request. + min-points: 85 diff --git a/.plumber.yaml b/.plumber.yaml new file mode 100644 index 00000000000..7f9ec72b6b2 --- /dev/null +++ b/.plumber.yaml @@ -0,0 +1,16 @@ +# Plumber overlay: inherits every control from the CLI's built-in +# baseline, only the differences for this repository are written here. +# Run 'plumber config resolve' to see the full effective config. +extends: plumber:default +version: '2.0' + +github: + controls: + githubActionMustComeFromAuthorizedSources: + # Keep the curated default list and trust the three third-party + # actions the docs, release and issue-metrics workflows use. + includePlumberDefaults: true + trustedGithubActions: + - JamesIves/github-pages-deploy-action + - softprops/action-gh-release + - github-community-projects/issue-metrics