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
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
statuses: write
|
||||
checks: write
|
||||
contents: read
|
||||
actions: read
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
types: [opened, reopened]
|
||||
|
||||
types: [opened, reopened, synchronize]
|
||||
merge_group: # triggers workflow for merge queue
|
||||
types: [checks_requested]
|
||||
jobs:
|
||||
tests:
|
||||
permissions:
|
||||
|
Reference in New Issue
Block a user