chore(ci): replace pull_request_target with pull_request in dependent issue workflows#766
Merged
Merged
Conversation
… issue workflows Agent-Logs-Url: https://github.com/Infomaniak/android-core/sessions/2fe00a39-c964-48c0-8798-2ba5e2590898 Co-authored-by: FabianDevel <45429131+FabianDevel@users.noreply.github.com>
|
Copilot created this pull request from a session on behalf of
FabianDevel
May 13, 2026 11:40
View session
There was a problem hiding this comment.
Pull request overview
This PR updates GitHub Actions triggers to use pull_request instead of pull_request_target for the dependent-issues and auto-author-assign workflows, aligning with the referenced change in android-kMail. The intent is to avoid running workflows in the elevated pull_request_target context.
Changes:
- Switched
.github/workflows/dependent-issues.ymlfrompull_request_targettopull_request. - Switched
.github/workflows/auto-author-assign.ymlfrompull_request_targettopull_request.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/dependent-issues.yml | Triggers the dependent-issues status check workflow on pull_request events instead of pull_request_target. |
| .github/workflows/auto-author-assign.yml | Triggers author auto-assignment on pull_request events instead of pull_request_target. |
Comments suppressed due to low confidence (1)
.github/workflows/dependent-issues.yml:14
- Switching from
pull_request_targettopull_requestmeans this workflow will run with a read-onlyGITHUB_TOKENand no secrets when the PR comes from a fork. Since this job is intended to create/update a PR status check (and the action uses the token for API calls), the run will likely fail or become a no-op for fork-based contributions. Consider adding a job-levelif: github.event.pull_request.head.repo.fork == false(or similar) to skip forks, or otherwise handle the reduced permissions explicitly to avoid noisy failures.
pull_request:
types:
- opened
- edited
- closed
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
FabianDevel
approved these changes
May 13, 2026
benjaminVadon
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
.github/workflows/dependent-issues.ymlto usepull_requestinstead ofpull_request_target.github/workflows/auto-author-assign.ymlto usepull_requestinstead ofpull_request_targetMirrors the change made in android-kMail#2903.
Validation