mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 09:34:33 +02:00
chore: Set permissions for GitHub actions (#2555)
* chore: Set permissions for GitHub actions 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. - 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/) Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> * Update docs-production-deploy.yml * added `packages: write` permissions this is apparently needed by GH so this repository can push new images. Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
28dfb1bd00
commit
13a194466b
7 changed files with 26 additions and 0 deletions
4
.github/workflows/docs-production-deploy.yml
vendored
4
.github/workflows/docs-production-deploy.yml
vendored
|
@ -23,6 +23,8 @@ env:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
permissions:
|
||||
contents: write
|
||||
name: 'Deploy Docs'
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
|
@ -68,6 +70,8 @@ jobs:
|
|||
user_email: ${{ env.GIT_EMAIL }}
|
||||
|
||||
add-version-to-docs:
|
||||
permissions:
|
||||
contents: write
|
||||
name: 'Update `versions.json` if necessary'
|
||||
runs-on: ubuntu-20.04
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue