ci: limit workflow permissions.

Make it so pull requests from outside contributors can't edit workflows
under .github/workflows/ without approval. Also limit workflows to the
minimum permissions necessary.
This commit is contained in:
evazion
2021-09-18 04:31:48 -05:00
parent 39fa2fe02d
commit 52cf13dff1
3 changed files with 15 additions and 0 deletions

View File

@@ -2,6 +2,9 @@
name: Test
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
permissions: read-all
on:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_run
workflow_run: