Update GitHub Actions workflow permissions and triggers
Added write and read permissions for pull requests, statuses, checks, contents, and actions. Enhanced pull_request trigger with the "synchronize" type and introduced the "merge_group" trigger for merge queue checks. These changes improve workflow flexibility and automation capabilities.
This commit is contained in:
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@@ -1,12 +1,18 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
statuses: write
|
||||||
|
checks: write
|
||||||
|
contents: read
|
||||||
|
actions: read
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
types: [opened, reopened]
|
types: [opened, reopened, synchronize]
|
||||||
|
merge_group: # triggers workflow for merge queue
|
||||||
|
types: [checks_requested]
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
permissions:
|
permissions:
|
||||||
|
Reference in New Issue
Block a user