Commit Graph

8 Commits

Author SHA1 Message Date
Giorgi Meskhidze
c7e7ebaa8a Update main function to process images and handle errors
Add logic to process each image for attestation and handle errors in `src/main.ts`.

* **src/main.ts**
  - Add logic to process each image for attestation.
  - Add logic to handle errors and fail the workflow run if an error is encountered.
  - Add `processImageForAttestation` function to process images.

* **__tests__/main.test.ts**
  - Add test cases to verify the processing of each image for attestation.
  - Add test cases to verify the handling of errors and failing the workflow run.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/GIgako19929/attest-build-provenance?shareId=XXXX-XXXX-XXXX-XXXX).
2025-02-03 11:48:28 -05:00
Giorgi Meskhidze
284c3fc77e Add support for attesting multiple docker images
Fixes #454

Add support for passing a list of docker images to attest.

* **action.yml**
  - Add a new input parameter `subject-images` to accept a list of docker images.
  - Update the `runs` section to handle the `subject-images` input.

* **src/main.ts**
  - Import `parseMultiImageInput` function from `utils.ts`.
  - Add logic to handle the `subject-images` input and process multiple docker images for attestation.

* **README.md**
  - Update the documentation to include usage instructions for the `subject-images` input.
  - Add an example for attesting multiple docker images.

* **__tests__/main.test.ts**
  - Add test cases to verify the functionality of attesting multiple docker images using the `subject-images` input.

* **src/utils.ts**
  - Add a new file to include the `parseMultiImageInput` function to parse the `subject-images` input.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/actions/attest-build-provenance/issues/454?shareId=XXXX-XXXX-XXXX-XXXX).
2025-02-03 11:43:56 -05:00
Brian DeHamer
d58ddf9f24
dynamic construction of oidc issuer (#195)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2024-08-09 07:42:36 -07:00
Brian DeHamer
46e4ff8b82
bump @actions/attest from 1.2.1 to 1.3.0 (#114)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2024-06-12 13:55:10 -07:00
Brian DeHamer
810042e79b
bump @actions/attest from 1.0.0 to 1.1.0 (#33)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2024-03-29 08:47:10 -07:00
Eugene
9b4b35feaa
unit test (#13)
* test

* updated
2024-02-29 17:04:03 -08:00
ejahnGithub
381fca5703 init attest build provenance 2024-02-22 08:29:05 -08:00
Brian DeHamer
1a4323c55b
Initial commit 2024-02-20 11:26:39 -08:00