ci(fix): Only apply permissions at the job level (#3142)

If permissions are specified at the workflow level, any that are not explicitly set became `none` and jobs cannot request that to change.

Permissions are therefore scoped to the job itself.
This commit is contained in:
Brennan Kinney 2023-03-04 03:32:00 +13:00 committed by GitHub
parent 9e2f96448a
commit aa4d4fe315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,9 +14,6 @@ on:
required: true
type: string
permissions:
contents: read
jobs:
scan-image:
permissions: