From be7daec55ace8298b341647a7ceb27e8b039d313 Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Wed, 19 Jun 2024 15:06:47 -0700 Subject: [PATCH] add multi-subject example to docs (#96) * add multi-subject example to docs Signed-off-by: Brian DeHamer * Update README.md Co-authored-by: Meredith Lancaster * Update README.md Co-authored-by: Meredith Lancaster --------- Signed-off-by: Brian DeHamer Co-authored-by: Meredith Lancaster --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d9b7ff..780069f 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ jobs: predicate: '{}' ``` -### Identify Subjects by Wildcard +### Identify Multiple Subjects If you are generating multiple artifacts, you can generate an attestation for each by using a wildcard in the `subject-path` input. @@ -180,6 +180,23 @@ 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@v1 + with: + subject-path: 'dist/foo, dist/bar' +``` + +```yaml +- uses: actions/attest@v1 + with: + subject-path: | + dist/foo + dist/bar +``` + ### Container Image When working with container images you can invoke the action with the