by moving the read permissions to the top level and
granting additional permissions to the specific jobs.
It should help to prevent new jobs that could be added
there eventually from having write access to resources they
most likely would never need.
schedule:
- cron: '0 1 * * *'
+permissions:
+ contents: read
+
jobs:
analyze:
name: Analyze
cancel-in-progress: true
permissions:
actions: read
- contents: read
security-events: write
strategy:
permissions:
contents: read
- pull-requests: write
jobs:
triage:
runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
steps:
- uses: actions/labeler@69da01b8e0929f147b8943611bee75ee4175a49e
with: