Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions .github/workflows/dependabot-lockfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ on:
required: true
type: string

# Read-only at the workflow level, so any job added to this file starts with nothing. The two
# write scopes belong to the single job below and are declared there, next to the steps that
# need them.
permissions:
contents: read
contents: write # sentinel:accept GHA002 - pushes the regenerated lock files to the Dependabot branch
actions: write # sentinel:accept GHA002 - approves the PR checks GitHub creates after the bot push

concurrency:
group: dependabot-lockfix-${{ github.event.workflow_run.head_branch || inputs.branch }}
Expand All @@ -67,15 +65,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10

# Both scopes are load-bearing, and each is used by exactly one step below:
# contents: write -> "Push the fix if anything changed" (git push origin HEAD:$BRANCH)
# actions: write -> "Approve the pull-request checks on the fixed commit"
# (POST /repos/{repo}/actions/runs/{id}/approve)
# Dropping either one breaks the repair this workflow exists to perform.
permissions:
contents: write
actions: write

env:
BRANCH: ${{ github.event.workflow_run.head_branch || inputs.branch }}

Expand Down