Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for attesting multiple docker images #462

Closed

Conversation

GIgako19929
Copy link

@GIgako19929 GIgako19929 commented Feb 3, 2025

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.

Fixes actions#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).
@GIgako19929 GIgako19929 requested a review from a team as a code owner February 3, 2025 16:43
Update `.github/linters/.markdown-lint.yml` to configure markdown linting rules.

* **Ordered list item prefix**
  - Set style to 'one' for MD029

* **Line length**
  - Set line length to 80 for MD013
  - Disable line length check for code blocks, tables, headings, headings with children, and code lines

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/GIgako19929/attest-build-provenance?shareId=XXXX-XXXX-XXXX-XXXX).
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).
Update main function to process images and handle errors
@bdehamer bdehamer closed this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow to pass a list of docker images to attest
3 participants