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:
Geoff Seemueller
2025-01-10 11:27:17 -05:00
parent b4358c641d
commit a3fc75635f

View File

@@ -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: