Skip to content

Fix file path when fetching notes#184

Merged
TomHennen merged 3 commits intoslsa-framework:mainfrom
puerco:notes-filename
Jun 5, 2025
Merged

Fix file path when fetching notes#184
TomHennen merged 3 commits intoslsa-framework:mainfrom
puerco:notes-filename

Conversation

@puerco
Copy link
Member

@puerco puerco commented Jun 4, 2025

This PR fixes the path we request from GitHub to retrieve a commit's notes.

I've added a unit test to make sure we are getting the expected data from GitHub that can be run locally with a token in the environment or skipped when there is not (ie in CI).

It also fixes a small bug where tokens from the environment were dropped at the gh connector init.

Signed-off-by: Adolfo Garcia Veytia (puerco) [email protected]

This commit fixes the path we request from github to retrieve a commit's
notes.

Signed-off-by: Adolfo Garcia Veytia (puerco) <[email protected]>
@puerco puerco marked this pull request as draft June 4, 2025 22:08
puerco added 2 commits June 4, 2025 15:23
This commit adds a unit test for the GetNotesForCommit func that
connects to the github api. It will be skipped if no token is set
in the environment.

Signed-off-by: Adolfo Garcia Veytia (puerco) <[email protected]>
Signed-off-by: Adolfo Garcia Veytia (puerco) <[email protected]>
@puerco puerco marked this pull request as ready for review June 4, 2025 22:25
Copy link
Contributor

@TomHennen TomHennen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TomHennen TomHennen merged commit 8bd18b3 into slsa-framework:main Jun 5, 2025
1 check passed
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.

2 participants