1- name : Test Witness Action Wrapper
1+ name : Test Nested Action Wrapper
22
33on :
44 push :
5- branches : [ main ]
5+ branches :
6+ - main
67 pull_request :
7- branches : [ main ]
8- workflow_dispatch :
9-
10- permissions :
11- id-token : write # Required for requesting the JWT
12- contents : read # Required for actions/checkout
8+ branches :
9+ - main
1310
1411jobs :
15- test-sigstore-archivista :
12+ test :
1613 runs-on : ubuntu-latest
1714 steps :
1815 - name : Checkout repository
1916 uses : actions/checkout@v3
2017
21- - name : Setup Node.js
22- uses : actions/setup-node@v3
18+
19+ - name : Run nested action with wrapper (using time)
20+ uses : ./
2321 with :
24- node-version : ' 16'
22+ action-ref : " actions/hello-world-javascript@v1"
23+ extra-args : " who-to-greet time"
24+ wrapper-command : " time"
2525
26- - name : Install dependencies
27- run : npm ci
2826
29- - name : Test wrapper with time command
30- id : time-test
27+ - name : Run nested action with wrapper (using time)
3128 uses : ./
3229 with :
33- action-ref : " actions/hello-world-javascript-action@main"
34- wrapper-command : " witness run -a=environment -a=github -a=slsa --attestor-slsa-export --enable-archivista=true --signer-fulcio-url=https://fulcio.sigstore.dev --signer-fulcio-oidc-client-id=sigstore --signer-fulcio-oidc-issuer=https://oauth2.sigstore.dev/auth -s=test-sigstore --timestamp-servers=https://freetsa.org/tsr --"
35- input-who-to-greet : " Time"
36-
37- - name : Check time output
38- run : |
39- if [ -f "${{ steps.time-test.outputs.wrapper-log }}" ]; then
40- echo "Time log file exists at ${{ steps.time-test.outputs.wrapper-log }}"
41- cat "${{ steps.time-test.outputs.wrapper-log }}"
42- else
43- echo "Time log file not found!"
44- exit 1
45- fi
46-
47- - name : Upload time logs as artifact
48- uses : actions/upload-artifact@v4
49- with :
50- name : time-logs
51- path : ${{ steps.time-test.outputs.wrapper-log }}
30+ action-ref : " actions/hello-world-javascript@v1"
31+ wrapper-command : " time"
32+ who-to-greet : " Mona the Octocat"
0 commit comments