Skip to content

chore(ci): inline pre-commit steps to comply with SHA pinning policy - #55

Merged
fridrik01 merged 1 commit into
bera-v1.xfrom
fix-ci-lint-pre-commit-action
Aug 6, 2026
Merged

chore(ci): inline pre-commit steps to comply with SHA pinning policy#55
fridrik01 merged 1 commit into
bera-v1.xfrom
fix-ci-lint-pre-commit-action

Conversation

@fridrik01

@fridrik01 fridrik01 commented Jul 24, 2026

Copy link
Copy Markdown

This PR fixes the lint job on bera-v1.x branch, which fails since the org policy now requires all actions to be SHA-pinned. The pre-commit/action step internally references actions/cache by tag, which violates this policy and cannot be fixed by pinning our own workflow refs. Here we replace the action with the equivalent shell commands, lint behavior should be unchanged.

Note: This is only required on the bera-v1.x branch, both main and bera-v0.39.x invoke the linter directly with golangci-lint.

@fridrik01 fridrik01 self-assigned this Jul 24, 2026
@fridrik01
fridrik01 marked this pull request as ready for review July 24, 2026 13:38
@fridrik01
fridrik01 requested review from bar-bera and calbera July 24, 2026 13:39

@calbera calbera left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm. can we eventually also use golangci linter directly as is done in main? maybe via #51 ?

@fridrik01

Copy link
Copy Markdown
Author

Merging, and will fix failing CI in a followup PR as lint debt has accumulated

@fridrik01
fridrik01 merged commit 31ddf3e into bera-v1.x Aug 6, 2026
16 of 17 checks 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