Skip to content

Conversation

@andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Jul 4, 2024

Proposed changes

Update the code health third parties action to their sha

@andreaangiolillo andreaangiolillo marked this pull request as ready for review July 4, 2024 16:12
@andreaangiolillo andreaangiolillo requested a review from a team July 4, 2024 16:12
Copy link
Contributor

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

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

not the same binary but the same rules, does the binary matter?

@gssbzn
Copy link
Contributor

gssbzn commented Jul 4, 2024

If you see the code they use it as a library, https://github.com/golangci/golangci-lint/blob/8f348db7bbd6366c528a369ad0b02505afd265c8/pkg/golinters/staticcheck/staticcheck.go#L4C22-L4C33 the note is just because of beef between the two projects

golangci/golangci-lint#2894

@andreaangiolillo
Copy link
Collaborator Author

ah okay, I was tricked by It's not the same thing as the staticcheck binary.. I will reuse this PR to update the action to ping third parties to sha then

@andreaangiolillo andreaangiolillo changed the title chore: add static check to code health chore: update code_health third parties action to their shas Jul 4, 2024
@andreaangiolillo andreaangiolillo requested a review from gssbzn July 4, 2024 16:30
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
Copy link
Contributor

Choose a reason for hiding this comment

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

my understanding was that actions supported by GH could remain on numbers and not shas, has this changed?

Copy link
Contributor

Choose a reason for hiding this comment

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

using shas is actually really bad for security scanning tools as you may be able to see from #3063

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was unaware of this, could you share where it was decided?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no problem if you don't find it. It makes sense that GH actions can be trusted

@andreaangiolillo andreaangiolillo deleted the chore_add_static_check_to_gh_action branch July 4, 2024 16:41
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.

3 participants