1
- name : Test Witness Action Wrapper
1
+ name : Test Nested Action Wrapper
2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches :
6
+ - main
6
7
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
13
10
14
11
jobs :
15
- test-sigstore-archivista :
12
+ test :
16
13
runs-on : ubuntu-latest
17
14
steps :
18
15
- name : Checkout repository
19
16
uses : actions/checkout@v3
20
17
21
- - name : Setup Node.js
22
- uses : actions/setup-node@v3
18
+
19
+ - name : Run nested action with wrapper (using time)
20
+ uses : ./
23
21
with :
24
- node-version : ' 16'
22
+ action-ref : " actions/hello-world-javascript@v1"
23
+ extra-args : " who-to-greet time"
24
+ wrapper-command : " time"
25
25
26
- - name : Install dependencies
27
- run : npm ci
28
26
29
- - name : Test wrapper with time command
30
- id : time-test
27
+ - name : Run nested action with wrapper (using time)
31
28
uses : ./
32
29
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