Skip to content

ci: set up basic GitHub actions workflows and add CodeQL#49

Open
thaJeztah wants to merge 1 commit intodocker:mainfrom
thaJeztah:add_gha
Open

ci: set up basic GitHub actions workflows and add CodeQL#49
thaJeztah wants to merge 1 commit intodocker:mainfrom
thaJeztah:add_gha

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Apr 10, 2026

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@thaJeztah
Copy link
Copy Markdown
Member Author

Error: Code Scanning could not process the submitted SARIF file:
CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled

Ah, it's already enabled through the repo settings; let's keep it simple and drop the workflow

- name: Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
directory: ./
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.

Not sure if codecov is still needed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I took some other repositories as a bit of a template; not really tied to CodeCov, but also thought it wouldn't really hurt; happy to remove though if you prefer, let me know 👍

runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v6.0.2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd rather use v6 here so the latest v6 is used. This will decrease the amount of noise from dependabot.

Same below.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So, that... depends on the action if I'm not mistaken; the "old" (and really ugly) way of v6 meant literally re-tagging a .. literal v6 tag.

With immutable actions that's no longer possible, in which case v6 means v6 (period) so it never updates, and doesn't resolve v6.x.x, unless using dependabot or renovate to resolve newer versions.

And in that case (when pinning by sha), it's clearer to specify the full version, because then at least you're able to verify that the SHA matches the tag.

In some cases, the workflow is even; delete the tag, then push a new one (through the GitHub UI 😬); e.g. see (the v5 tag was deleted then re-created with the same sha as the latest v5.x.x)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not a blocker (esp. since you change the tags with checksums in the next commit).

- name: Set up Go
uses: actions/setup-go@v6.4.0
with:
cache: false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

caching might be OK here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, yes, I think this was zizmor flagging it, so I kept it for now (probably won't make much difference for this repository).

@thaJeztah thaJeztah mentioned this pull request Apr 10, 2026
@thaJeztah thaJeztah marked this pull request as ready for review April 10, 2026 21:41
Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

lgtm (don't mind if you squash the two commits)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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.

4 participants