Skip to content

Commit df07a33

Browse files
author
Cole Kennedy
committed
.
1 parent 307cf19 commit df07a33

File tree

2 files changed

+5
-42
lines changed

2 files changed

+5
-42
lines changed

.github/workflows/test.yml

+1-38
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,7 @@ permissions:
1111
contents: read # This is required for actions/checkout
1212

1313
jobs:
14-
test-basic:
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 basic attestation
29-
id: attestation
30-
uses: ./
31-
with:
32-
# Action to run
33-
action-ref: "actions/hello-world-javascript-action@main"
34-
input-who-to-greet: "World"
35-
36-
# Witness configuration
37-
step: "hello-world"
38-
attestations: "command"
39-
40-
- name: Check attestation file
41-
run: |
42-
if [[ -f "/tmp/hello-world-attestation.json" ]]; then
43-
echo "Attestation created successfully"
44-
jq . "/tmp/hello-world-attestation.json" | head -n 20
45-
else
46-
echo "Attestation file not found!"
47-
exit 1
48-
fi
4914

50-
test-multi-attestors:
5115
runs-on: ubuntu-latest
5216
steps:
5317
- name: Checkout repository
@@ -111,7 +75,7 @@ jobs:
11175
with:
11276
# Action to run
11377
action-ref: "actions/hello-world-javascript-action@main"
114-
input-who-to-greet: "Sigstore"
78+
who-to-greet: "Sigstore"
11579

11680
# Witness configuration
11781
step: test-sigstore
@@ -146,7 +110,6 @@ jobs:
146110
name: sigstore-attestation
147111
path: ./sigstore-attestation.json
148112

149-
test-direct-command:
150113
runs-on: ubuntu-latest
151114
steps:
152115
- name: Checkout repository

action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ inputs:
107107
attestor-maven-pom-path:
108108
description: "Path to Maven POM file"
109109
required: false
110-
111-
# Input Passing to Nested Actions
112-
'*':
113-
description: "Any inputs that aren't defined above will be passed through to the nested action as-is"
110+
111+
who-to-greet:
112+
description: "Who to greet"
114113
required: false
114+
default: "World"
115115

116116
outputs:
117117
git_oid:

0 commit comments

Comments
 (0)