mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
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
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@ -1,6 +1,14 @@
|
||||
name: Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- '*.x'
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
|
4
.github/workflows/update-changelog.yml
vendored
4
.github/workflows/update-changelog.yml
vendored
@ -4,6 +4,10 @@ on:
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
update:
|
||||
permissions:
|
||||
contents: write
|
||||
uses: laravel/.github/.github/workflows/update-changelog.yml@main
|
||||
|
Loading…
x
Reference in New Issue
Block a user