66 pull_request :
77 branches : [ main ]
88 workflow_dispatch : # Allow manual triggering
9-
9+
1010permissions :
11- id-token : write # This is required for requesting the JWT
12- contents : read # This is required for actions/checkout
11+ id-token : write # Required for requesting the JWT
12+ contents : read # Required for actions/checkout
1313
14- jobs :
14+ jobs :
1515 test-input-forwarding :
1616 runs-on : ubuntu-latest
1717 steps :
@@ -25,24 +25,21 @@ jobs:
2525
2626 - name : Install dependencies
2727 run : npm ci
28-
28+
2929 - name : Test Input Forwarding
3030 id : input-forwarding
3131 uses : ./
3232 with :
33- # Action to run
33+ # Wrapped action reference
3434 action-ref : " actions/hello-world-javascript-action@main"
35-
36- # Test different input formats - passed to nested action
37- who-to-greet : " Input Forwarding Test"
38- multi-word-param : " Multiple Words Parameter"
39- boolean-flag : " true"
40-
41- # Witness configuration
35+ # Pass required input along with any extra parameters via extraArgs.
36+ # NOTE: The wrapper code parses extraArgs and sets them as environment variables.
37+ extraArgs : " WHO_TO_GREET='Input Forwarding Test' MULTI_WORD_PARAM='Multiple Words Parameter' BOOLEAN_FLAG=true"
38+ # Witness configuration inputs
4239 step : " input-forwarding"
4340 attestations : " command environment"
4441 outfile : " ./input-forwarding.json"
45-
42+
4643 - name : Check attestation file
4744 run : |
4845 if [[ -f "./input-forwarding.json" ]]; then
5249 echo "Input forwarding attestation file not found!"
5350 exit 1
5451 fi
55-
52+
5653 test-sigstore-archivista :
5754 runs-on : ubuntu-latest
5855 steps :
@@ -71,11 +68,10 @@ jobs:
7168 id : sigstore-attestation
7269 uses : ./
7370 with :
74- # Action to run
7571 action-ref : " actions/hello-world-javascript-action@main"
76- who-to-greet : " Sigstore "
77-
78- # Witness configuration
72+ # Pass required input using extraArgs
73+ extraArgs : " WHO_TO_GREET='Sigstore' "
74+ # Witness configuration inputs
7975 step : test-sigstore
8076 attestations : " environment github slsa"
8177 attestor-slsa-export : " true"
@@ -107,4 +103,3 @@ jobs:
107103 with :
108104 name : sigstore-attestation
109105 path : ./sigstore-attestation.json
110-
0 commit comments