Merge pull request #2772 from sashashura/patch-1

GitHub Workflows security hardening
This commit is contained in:
Marcus Bointon 2022-09-21 15:27:22 +02:00 committed by GitHub
commit d783947aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -3,8 +3,12 @@ on:
push:
branches:
- master
permissions: {}
jobs:
build_and_publish:
permissions:
contents: write # to push changes in repo (jamesives/github-pages-deploy-action)
name: Build and publish Docs
runs-on: ubuntu-latest
if: github.repository == 'PHPMailer/PHPMailer'

View File

@ -6,6 +6,9 @@ on:
# Allow manually triggering the workflow.
workflow_dispatch:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
coding-standard: