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:
ChristopherHX
2023-01-29 15:47:56 +01:00
committed by GitHub
parent 932863bef5
commit 3748772201
2 changed files with 21 additions and 1 deletions

View 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'