Skip to content

Commit 995dfa6

Browse files
authored
add multi-subject examples to docs (#118)
Signed-off-by: Brian DeHamer <[email protected]>
1 parent 534b352 commit 995dfa6

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
subject-path: '${{ github.workspace }}/my-app'
140140
```
141141

142-
### Identify Subjects by Wildcard
142+
### Identify Multiple Subjects
143143

144144
If you are generating multiple artifacts, you can generate a provenance
145145
attestation for each by using a wildcard in the `subject-path` input.
@@ -153,6 +153,23 @@ attestation for each by using a wildcard in the `subject-path` input.
153153
For supported wildcards along with behavior and documentation, see
154154
[@actions/glob][8] which is used internally to search for files.
155155

156+
Alternatively, you can explicitly list multiple subjects with either a comma or
157+
newline delimited list:
158+
159+
```yaml
160+
- uses: actions/attest-build-provenance@v1
161+
with:
162+
subject-path: 'dist/foo, dist/bar'
163+
```
164+
165+
```yaml
166+
- uses: actions/attest-build-provenance@v1
167+
with:
168+
subject-path: |
169+
dist/foo
170+
dist/bar
171+
```
172+
156173
### Container Image
157174

158175
When working with container images you can invoke the action with the

0 commit comments

Comments
 (0)