Skip to content

Test pull requests in CI, and add Dependabot - #14

Merged
junior merged 2 commits into
p10node:mainfrom
junior:dependabot-ci
Oct 30, 2026
Merged

junior merged 2 commits into
p10node:mainfrom
junior:dependabot-ci

Conversation

@junior

@junior junior commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Nothing checks a pull request before it is merged today: release.yml only runs on a tag, so every review has meant testing locally.

.github/workflows/test.yml runs gofmt, go vet ./..., go test ./... and govulncheck (pinned to v1.9.0) on every pull request and every push to main, against the two Go releases that still get security fixes (1.26.x and 1.27.x, the newest patch of each). It also runs once a week with no change at all, because a vulnerability can be published against a dependency nobody touched: that is how the x/net issues fixed in #13 would have shown up. It uses a read-only token and keeps no credentials in the checkout.

.github/dependabot.yml proposes newer direct Go dependencies and GitHub Actions once a week, with the k8s.io modules grouped (they are released together and have to move together) and the charmbracelet modules grouped. Indirect modules are left alone on purpose: they follow what the direct ones require, and bumping one by itself can break the k8s.io set. A plain go get -u ./... does exactly that today: it moves an indirect structured-merge-diff past what k8s.io/apimachinery v0.37.1 supports and the build fails. The weekly govulncheck run covers the indirect modules instead.

Dependabot's commits are authored by a bot, which the DCO app skips (dcoapp/app, lib/dco.js: a commit whose author is a Bot is not checked), so its pull requests need no Signed-off-by.

Checked with actionlint and with the Dependabot and GitHub workflow JSON schemas. The workflow should run on this pull request itself.

Nothing checked a pull request before it was merged: release.yml runs
only on a tag. test.yml runs gofmt, go vet, go test and govulncheck on
every pull request and push to main, against the two Go releases that
still get security fixes, and once a week with no change, because a
vulnerability can be published against a dependency nobody touched.

Dependabot proposes newer direct Go dependencies and GitHub Actions
weekly, with the k8s.io modules grouped, since they have to move
together, and the charmbracelet modules grouped. Indirect modules are
left to the weekly govulncheck run: bumping one alone can break the
k8s.io set. The DCO check skips Dependabot's bot-authored commits.

Signed-off-by: Adao Oliveira Jr <junior@users.noreply.github.com>
@pierreneter

Copy link
Copy Markdown
Member

Hi @junior,

The two test jobs failed only on govulncheck, which flagged the five golang.org/x/net@v0.56.0 HTTP/2 vulnerabilities that #13 fixes. #13 is now merged, so nothing in this PR needs changing; it just needs to be checked against current main.

Maintainer edits aren't enabled on this PR, so I can't update the branch from here. If you can, please merge main in and push (adjust the remote name if yours differs):

git fetch upstream main
git merge upstream/main
git push origin dependabot-ci

The push re-triggers CI. Thanks!! 🙏

The required checks need this branch to be up to date with main, and
govulncheck here passes once p10node#13's x/net fixes are in.

Signed-off-by: Adao Oliveira Jr <junior@users.noreply.github.com>
@junior

junior commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

Done, main is merged in and all checks are green.

@junior
junior merged commit 5d6495a into p10node:main Oct 30, 2026
5 checks passed
@junior
junior deleted the dependabot-ci branch November 6, 2026 20:30
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