From 995dfa6a20f9272a94fffbb7e9023d014af75b35 Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Mon, 17 Jun 2024 06:50:59 -0700 Subject: [PATCH] add multi-subject examples to docs (#118) Signed-off-by: Brian DeHamer --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c1e2dc1..0cf097a6 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ jobs: subject-path: '${{ github.workspace }}/my-app' ``` -### Identify Subjects by Wildcard +### Identify Multiple Subjects If you are generating multiple artifacts, you can generate a provenance 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 [@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 When working with container images you can invoke the action with the