Skip to content

Commit d68ff09

Browse files
authored
fix(gha-lint): allow lint workflow to be triggered by github-actions[bot] (#41)
## what - Use the `on: pull_request_target` event in lint workflow. ## why - GitHub Actions workflows configured with `on: pull_request` do not trigger for Pull Requests created by the default github-actions[bot] user. This leads to PRs being "blocked" or "pending checks" indefinitely, _if repository rulesets require those checks._ - pull_request_target runs from the base repository's context, allowing it to be triggered by github-actions[bot]. ## references - Related PR #37 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated the trigger for the lint workflow to improve how and when it runs on pull requests. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 547db0e commit d68ff09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ concurrency:
44
group: lint-${{ github.head_ref || github.run_id }}
55
cancel-in-progress: true
66

7-
on: pull_request
7+
on: pull_request_target
88

99
permissions:
1010
actions: read

0 commit comments

Comments
 (0)