Add path to created attestation in a well-known summary file#252
Merged
Conversation
attestation is stored. One attestation per line. Signed-off-by: Fredrik Skogman <[email protected]>
Signed-off-by: Fredrik Skogman <[email protected]>
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds tracking of all created attestations by appending their paths to a summary file and documents this behavior in the README.
- Introduce
created_attestation_paths.txtconstant and append each attestation path to this file inmain.ts - Update README to explain how to locate all attestation files via
${RUNNER_TEMP}/created_attestation_paths.txt
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/main.ts | Append each generated attestation file path to a summary file in runner temp |
| README.md | Document the new summary file and its usage |
Comments suppressed due to low confidence (1)
src/main.ts:86
- [nitpick] Consider adding a unit test that verifies this summary file is created and that
appendFileSyncis called with the correct path and data.
fs.appendFileSync(outputSummaryPath, outputPath + os.EOL, {
bdehamer
reviewed
Jun 10, 2025
bdehamer
approved these changes
Jun 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For a situation where multiple attestations are created in a workflow, write the path to each file in a well-known file. This allows for creation of summary steps that can easily read this and act on the created attestations, without knowing about all the steps and their id:s.
The file chosen to be the well-known file is
${RUNNER_TEMP}/created_attestation_paths.txt. Each attestation is appended to that file, one path to an attestation per line.