ci: drop default workflow token permissions
The test workflow only needs to evaluate and build repository code. It does not write statuses, labels, comments, or pull request metadata, so keeping GitHub's default token scope is broader than necessary.
This commit is contained in:
parent
67f2a145a9
commit
6658732d33
1 changed files with 1 additions and 0 deletions
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
|
@ -6,6 +6,7 @@ on:
|
|||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
permissions: {}
|
||||
jobs:
|
||||
changes:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue