mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
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:
parent
97fb7ba580
commit
4dd6cc3986
2 changed files with 21 additions and 1 deletions
17
act/runner/testdata/do-not-leak-step-env-in-composite/push.yml
vendored
Normal file
17
act/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'
|
Loading…
Add table
Add a link
Reference in a new issue