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

Commits on Oct 18, 2024

  1. Add option to suppress job summary

    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 committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    47ca830 View commit details
    Browse the repository at this point in the history