mirror of
https://github.com/actions/attest-build-provenance.git
synced 2025-12-13 19:02:19 +00:00
add multi-subject examples to docs (#118)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
parent
534b352d65
commit
995dfa6a20
19
README.md
19
README.md
@ -139,7 +139,7 @@ jobs:
|
|||||||
subject-path: '${{ github.workspace }}/my-app'
|
subject-path: '${{ github.workspace }}/my-app'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Identify Subjects by Wildcard
|
### Identify Multiple Subjects
|
||||||
|
|
||||||
If you are generating multiple artifacts, you can generate a provenance
|
If you are generating multiple artifacts, you can generate a provenance
|
||||||
attestation for each by using a wildcard in the `subject-path` input.
|
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.
|
|||||||
For supported wildcards along with behavior and documentation, see
|
For supported wildcards along with behavior and documentation, see
|
||||||
[@actions/glob][8] which is used internally to search for files.
|
[@actions/glob][8] which is used internally to search for files.
|
||||||
|
|
||||||
|
Alternatively, you can explicitly list multiple subjects with either a comma or
|
||||||
|
newline delimited list:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: actions/attest-build-provenance@v1
|
||||||
|
with:
|
||||||
|
subject-path: 'dist/foo, dist/bar'
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: actions/attest-build-provenance@v1
|
||||||
|
with:
|
||||||
|
subject-path: |
|
||||||
|
dist/foo
|
||||||
|
dist/bar
|
||||||
|
```
|
||||||
|
|
||||||
### Container Image
|
### Container Image
|
||||||
|
|
||||||
When working with container images you can invoke the action with the
|
When working with container images you can invoke the action with the
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user