-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Do not leak step env in composite (#1585)
* test: Do not leak step env in composite To prevent merging regressions. * Update runner_test.go
- Loading branch information
1 parent
932863b
commit 3748772
Showing
2 changed files
with
21 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
17 changes: 17 additions & 0 deletions
17
pkg/runner/testdata/do-not-leak-step-env-in-composite/push.yml
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: push | ||
jobs: | ||
_: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
runs: | ||
using: composite | ||
steps: | ||
- run: exit 1 | ||
if: env.LEAK_ENV != 'val' | ||
shell: cp {0} action.yml | ||
- uses: ./ | ||
env: | ||
LEAK_ENV: val | ||
- run: exit 1 | ||
if: env.LEAK_ENV == 'val' |