Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use pull_request_target event for semantic PR workflow #1025

Merged
merged 3 commits into from
Mar 15, 2021

Conversation

suzubara
Copy link
Contributor

@suzubara suzubara commented Mar 15, 2021

Summary

Use the newly introduced pull_request_target event to trigger the semantic PR workflow. This ensures semantic PR workflow is always run against the config in the base branch of a PR, allowing PRs from forks to run workflows without worrying that they are changing config. This should also fix an issue where Dependabot PRs are failing with the error: Error: Resource not accessible by integration (source)

Note, I added this branch to the config in order to test that it actually fixed the Dependabot issue (since pull_request_target means the base branch of a PR needs to include updated config). When this PR is approved I will remove it.

@trussworks-infra-zz trussworks-infra-zz temporarily deployed to storybook March 15, 2021 16:29 Inactive
@suzubara suzubara marked this pull request as ready for review March 15, 2021 16:34
@suzubara suzubara added the type: development Enhancements to the development workflow label Mar 15, 2021
@suzubara suzubara changed the title Use pull_request_target event for semantic PR workflow build: Use pull_request_target event for semantic PR workflow Mar 15, 2021
@suzubara suzubara changed the title build: Use pull_request_target event for semantic PR workflow ci: Use pull_request_target event for semantic PR workflow Mar 15, 2021
ahobson
ahobson previously approved these changes Mar 15, 2021
@trussworks-infra-zz trussworks-infra-zz temporarily deployed to storybook March 15, 2021 16:48 Inactive
@ahobson ahobson merged commit ac1f87a into main Mar 15, 2021
@ahobson ahobson deleted the sr-update-semantic-pr-config branch March 15, 2021 16:53
brandonlenz pushed a commit that referenced this pull request May 12, 2021
* Use pull_request_target event for semantic PR workflow

* Temp add this branch to test workflow

* Remove this branch name from workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: development Enhancements to the development workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants