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 option to suppress job summary #283

Closed

Conversation

mustafacco7
Copy link

@mustafacco7 mustafacco7 commented Oct 18, 2024

Fixes #126

Add option to suppress job summary and provide attestation URL output.

  • Add suppress-summary input parameter to action.yml to control job summary suppression.
  • Add attestation-url output parameter to action.yml to provide attestation URL.
  • Import getInput and setOutput functions from @actions/core in src/main.ts.
  • Check suppress-summary input value and conditionally skip summary generation in src/main.ts.
  • Set attestation-url output with generated attestation URL in src/main.ts.
  • Add generateAttestationUrl and generateSummary functions in src/main.ts.
  • Update tests in __tests__/main.test.ts to cover suppress-summary input and verify attestation-url output.
  • Add test for JSON output format for multiple attestations in __tests__/main.test.ts.

For more details, open the Copilot Workspace session.

Fixes actions#126

Add option to suppress job summary and provide attestation URL output.

* Add `suppress-summary` input parameter to `action.yml` to control job summary suppression.
* Add `attestation-url` output parameter to `action.yml` to provide attestation URL.
* Import `getInput` and `setOutput` functions from `@actions/core` in `src/main.ts`.
* Check `suppress-summary` input value and conditionally skip summary generation in `src/main.ts`.
* Set `attestation-url` output with generated attestation URL in `src/main.ts`.
* Add `generateAttestationUrl` and `generateSummary` functions in `src/main.ts`.
* Update tests in `__tests__/main.test.ts` to cover `suppress-summary` input and verify `attestation-url` output.
* Add test for JSON output format for multiple attestations in `__tests__/main.test.ts`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/actions/attest-build-provenance/issues/126?shareId=XXXX-XXXX-XXXX-XXXX).
@mustafacco7 mustafacco7 requested a review from a team as a code owner October 18, 2024 10:13
@bdehamer bdehamer closed this Oct 18, 2024
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.

Add option to suppress job summary
2 participants