Skip to content

Harden gh actions#198

Merged
EthanHeilman merged 4 commits into
openpubkey:mainfrom
datosh:harden-gh-actions
May 17, 2025
Merged

Harden gh actions#198
EthanHeilman merged 4 commits into
openpubkey:mainfrom
datosh:harden-gh-actions

Conversation

@datosh

@datosh datosh commented May 17, 2025

Copy link
Copy Markdown
Contributor

I had some fun comparing GHA security scanners and needed a victim / beneficiary 😉

I used zizmore, poutine, octoscan and github-actions-scanner.

In the end - all the changes I made were based on findings from zizmore. Here are the specific issues I fixed:

They support running the checks in GHA, which might be a nice addition, if you end up agreeing with the changes.

Additionally, I would suggest that we add either dependabot or renovate to get version upgrade for GHA - as the versions are now pinned - might be nice for Go as well. Happy to create follow-up issues if you like the direction.

I did run each action in my fork using workflow_dispatch to verify they still work:

datosh added 4 commits May 17, 2025 11:11
Signed-off-by: Fabian Kammel <fabian@kammel.dev>
Signed-off-by: Fabian Kammel <fabian@kammel.dev>
Signed-off-by: Fabian Kammel <fabian@kammel.dev>
…ing attacks

Signed-off-by: Fabian Kammel <fabian@kammel.dev>

@EthanHeilman EthanHeilman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - This is really great

@EthanHeilman

EthanHeilman commented May 17, 2025

Copy link
Copy Markdown
Member

Additionally, I would suggest that we add either dependabot or renovate to get version upgrade for GHA - as the versions are now pinned - might be nice for Go as well. Happy to create follow-up issues if you like the direction. They support running the checks in GHA, which might be a nice addition, if you end up agreeing with the changes.

Please do

@EthanHeilman EthanHeilman merged commit 93e52ef into openpubkey:main May 17, 2025
@EthanHeilman

Copy link
Copy Markdown
Member

@datosh

datosh commented May 19, 2025

Copy link
Copy Markdown
Contributor Author

That's odd - I pulled the changes into my fork and it builds just fine on main: https://github.com/datosh/opkssh/actions/runs/15107805718

Also the test I did prior to sending the PR was green: https://github.com/datosh/opkssh/actions/runs/15084082929

Could you rerun the pipeline to see if the action itself might be flaky?

edit: This might be another instance of #184 - same exact error message!

@EthanHeilman

Copy link
Copy Markdown
Member

@datosh You are right, it has nothing to do with your change. This error seems to occur whenever we make a change to GHA and then merge to main, rerunning makes it go away.

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