fix: composite action input pollution (#2348)
* fix: composite action input pollution * fix run steps * fix missing defaults in post after env cleanup * fix test to make more sense * Add tests and simplify change --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
18
pkg/runner/testdata/uses-composite-check-for-input-shadowing/composite_action/action.yml
vendored
Normal file
18
pkg/runner/testdata/uses-composite-check-for-input-shadowing/composite_action/action.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: "Test Composite Action"
|
||||
description: "Test action uses composite"
|
||||
|
||||
inputs:
|
||||
cache:
|
||||
default: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: ./uses-composite-check-for-input-shadowing/action-with-pre-and-post
|
||||
with:
|
||||
step: step1
|
||||
cache: ${{ inputs.cache || 'none' }}
|
||||
- uses: ./uses-composite-check-for-input-shadowing/action-with-pre-and-post
|
||||
with:
|
||||
step: step2
|
||||
cache: ${{ inputs.cache || 'none' }}
|
||||
Reference in New Issue
Block a user