The Smallest Token That Can Read a Dependabot Alert
A weekly dependency report has a modest job. Read the repository's alerts, count the ones that still need a decision, and put the result where the team plans its work. Its credentials should fit on the same small brief.
On September 3, GitHub added a vulnerability-alerts permission for the built-in GITHUB_TOKEN. A workflow can request read for Dependabot alerts. That gives a reporting job a path away from a personal token originally created by whoever wrote the first version of the report. GitHub Actions announcement.
Draw the boundary around one job
Suppose the report runs on Monday morning. It calls the alerts API for the repository and writes totals to the job summary. Scope the permission to that job. If it never reads the working tree, skip the checkout. If the team later wants it to open issues, review that new write operation as a separate decision.
There is a second boundary in the output. A list of vulnerable dependencies can tell a reader quite a bit about a private service. Check who can see the destination before copying a report there. Often a count and a link back to the restricted alerts view give the triage meeting everything it needs.
I would retire the old credential after the replacement has completed a scheduled run and its other consumers have been accounted for. A narrower token in a workflow makes little difference while its broadly capable predecessor still works.