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:
parent
4a73b5d57e
commit
9725129d74
|
@ -1,6 +1,14 @@
|
||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '*.x'
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|
|
@ -4,6 +4,10 @@ on:
|
||||||
release:
|
release:
|
||||||
types: [released]
|
types: [released]
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
uses: laravel/.github/.github/workflows/update-changelog.yml@main
|
uses: laravel/.github/.github/workflows/update-changelog.yml@main
|
||||||
|
|
Loading…
Reference in New Issue