Least Privilege for GITHUB_TOKEN
A workflow only runs tests. What should its permissions: block be?
permissions:
Choose one answer
permissions: { contents: read }
permissions: write-all, so the tests can report results in any way.
permissions: write-all
permissions: { id-token: write }
No block at all: the token never has more access than the workflow needs.