GitHub Workflows security hardening (#5992)

* build: harden update-changelog.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden tests.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>

* Update update-changelog.yml

* Update tests.yml

Co-authored-by: Dries Vints <dries@vints.io>
This commit is contained in:
Alex 2022-09-20 15:19:54 +02:00 committed by GitHub
parent 4a73b5d57e
commit 9725129d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,14 @@
name: Tests
on: [push, pull_request]
on:
push:
branches:
- master
- '*.x'
pull_request:
permissions:
contents: read
jobs:
tests:

View File

@ -4,6 +4,10 @@ on:
release:
types: [released]
permissions: {}
jobs:
update:
permissions:
contents: write
uses: laravel/.github/.github/workflows/update-changelog.yml@main