mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added permissions for GitHub actions (#3804)
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
This commit is contained in:
parent
cc0f7a914a
commit
1479e696c3
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -26,6 +26,9 @@ on:
|
||||
env:
|
||||
NODE_VERSION: 14.x
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build project
|
||||
|
3
.github/workflows/documentation.yml
vendored
3
.github/workflows/documentation.yml
vendored
@ -27,6 +27,9 @@ on:
|
||||
env:
|
||||
PYTHON_VERSION: 3.x
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
documentation:
|
||||
name: Build documentation
|
||||
|
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -27,6 +27,9 @@ on:
|
||||
env:
|
||||
PYTHON_VERSION: 3.x
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
publish_pypi:
|
||||
name: Build and push Python package
|
||||
|
Loading…
Reference in New Issue
Block a user