-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actions to run on pull_request + push
The pull_request_target means "Run the actions from the PR target's primary branch" -- which means any new changes aren't present. So although that grants access to the secrets, it's not particularly useful in this context. So when we're not publishing the image, we don't log in. There is no way to make secrets available to PRs (which prevents all sorts of secret exfil problems) and not logging into dockerhub for this makes sense.
- Loading branch information
Showing
4 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ concurrency: | |
|
||
on: | ||
push: | ||
pull_request_target: | ||
pull_request: | ||
|
||
jobs: | ||
what-to-build: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,7 @@ ci_error() { | |
>&2 echo "::error::$@" | ||
exit 1 | ||
} | ||
|
||
ci_pass() { | ||
echo "✅ $@" | ||
} |