feat(get-workflow-token): Add condition to check the GitHub repository owner#99
Merged
feat(get-workflow-token): Add condition to check the GitHub repository owner#99
Conversation
To ensure that this workflow cannot be run outside the 3ware GitHub organisation.
0fa0c87 to
9418e51
Compare
chazypro
approved these changes
Aug 28, 2024
3ware-release Bot
pushed a commit
that referenced
this pull request
Aug 28, 2024
## [3.1.0](v3.0.1...v3.1.0) (2024-08-28) ### Features * **get-workflow-token:** Add condition to check the GitHub repository owner ([#99](#99)) ([7450cd6](7450cd6))
Contributor
|
This PR is included in version 3.1.0 |
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.
This workflow should not be called from outside of the 3ware organisation because it creates an installation access token for the 3ware release GitHub App.
This has been tested from a user GitHub account and the action does fail, because the user account does not have access to secrets required for the action to run.
Adding the condition to check for the owner, skips the workflow entirely. This resolves #98