@@ -11,50 +11,6 @@ permissions:
1111 contents : read # This is required for actions/checkout
1212
1313jobs :
14-
15- runs-on : ubuntu-latest
16- steps :
17- - name : Checkout repository
18- uses : actions/checkout@v3
19-
20- - name : Setup Node.js
21- uses : actions/setup-node@v3
22- with :
23- node-version : ' 16'
24-
25- - name : Install dependencies
26- run : npm ci
27-
28- - name : Test wrapper with multiple attestors
29- id : multi-attestation
30- uses : ./
31- with :
32- # Action to run
33- action-ref : " actions/hello-world-javascript-action@main"
34- input-who-to-greet : " Witness"
35-
36- # Witness configuration
37- step : " hello-world-multi"
38- attestations : " command attestor.git attestor.sbom"
39- attestor-sbom-export : " true"
40- outfile : " ./multi-attestation.json"
41-
42- - name : Check attestation file
43- run : |
44- if [[ -f "./multi-attestation.json" ]]; then
45- echo "Multi-attestation created successfully"
46- jq . "./multi-attestation.json" | head -n 20
47- else
48- echo "Multi-attestation file not found!"
49- exit 1
50- fi
51-
52- - name : Upload attestation as artifact
53- uses : actions/upload-artifact@v4
54- with :
55- name : attestation-files
56- path : ./multi-attestation.json
57-
5814 test-sigstore-archivista :
5915 runs-on : ubuntu-latest
6016 steps :
7531 with :
7632 # Action to run
7733 action-ref : " actions/hello-world-javascript-action@main"
78- who-to-greet : " Sigstore"
34+ input- who-to-greet : " Sigstore"
7935
8036 # Witness configuration
8137 step : test-sigstore
@@ -109,48 +65,3 @@ jobs:
10965 with :
11066 name : sigstore-attestation
11167 path : ./sigstore-attestation.json
112-
113- runs-on : ubuntu-latest
114- steps :
115- - name : Checkout repository
116- uses : actions/checkout@v3
117-
118- - name : Setup Node.js
119- uses : actions/setup-node@v3
120- with :
121- node-version : ' 16'
122-
123- - name : Install dependencies
124- run : npm ci
125-
126- - name : Test direct command
127- id : direct-command
128- uses : ./
129- with :
130- # Direct command to run
131- command : " echo hello > hello.txt"
132-
133- # Witness configuration
134- step : " direct-command"
135- attestations : " command environment"
136- outfile : " ./direct-command.json"
137-
138- - name : Check command output
139- run : |
140- if [ -f "hello.txt" ]; then
141- echo "Command output:"
142- cat hello.txt
143- else
144- echo "Command output file not found!"
145- exit 1
146- fi
147-
148- - name : Check attestation file
149- run : |
150- if [[ -f "./direct-command.json" ]]; then
151- echo "Direct command attestation created successfully"
152- jq . "./direct-command.json" | head -n 20
153- else
154- echo "Direct command attestation file not found!"
155- exit 1
156- fi
0 commit comments