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
This commit is contained in:
17
pkg/runner/testdata/do-not-leak-step-env-in-composite/push.yml
vendored
Normal file
17
pkg/runner/testdata/do-not-leak-step-env-in-composite/push.yml
vendored
Normal file
@@ -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'
|
Reference in New Issue
Block a user