Repository navigation
ci: adopt Hoverkraft Go CI and DevX conventions #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
neilime
wants to merge
35
commits into
main
Choose a base branch
from
ci/refresh-actions-and-workflows
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
619f4fb
ci: promote tested images and prepare chart releases
neilime 503daac
ci: adopt shared Go actions and fix audited dependencies
neilime 80a6c05
ci: adopt Hoverkraft CI and DevX conventions
neilime 7b6b11a
ci: preserve existing CodeQL and validate deployment policies
neilime b0b8dfe
ci: complete shared CI and DevX adoption
neilime 704de98
build(deps): update ci-github-publish to 3.1.2
neilime 71a4f50
build(deps): pin shared language CI releases
neilime 5b28d47
ci: address shared workflow and dependency maintenance review
neilime 9480839
ci: reuse immutable image mirroring and container 4.2.1
neilime 30dda26
ci: publish Docker Hub images through digest promotion
neilime f5ca78a
ci: consolidate Go matrix, image and chart reports
neilime 055993d
refactor(ci): separate report publication from CI completion
neilime bd96836
ci: validate the final shared reporting contract
neilime 93942b7
fix(ci): adopt external coverage comment ownership
neilime 795d062
ci: adopt actionable reports and stable coverage project flags
neilime eca1f9e
ci: update validated reporting implementation
neilime 1e383cf
ci: use the corrected Common reporting actions
neilime a0bbdde
ci: use bundled Node.js coverage conversion
neilime 22b10b3
ci: validate composed report actions
neilime e543b24
refactor(ci): use dedicated report publication workflow
neilime afee858
refactor(ci): use dedicated report publication workflow
neilime f05b3cc
ci: adopt upstream-based report preparation and publication
neilime eaccb3d
fix(ci): validate reporting with final provider candidates
neilime f4aebdf
fix(reports): adopt file-safe coverage and bounded publication
neilime 5044f41
fix(reports): update common reporting dependency
neilime aa81f5f
refactor(ci): call shared completion workflow
neilime 74b02c1
ci: refresh unified reporting provider candidates
neilime 18bcb6d
fix(ci): consume native Go coverage discovery correction
neilime fe2d5f4
ci: group checks behind one completion gate
neilime 705b010
ci: show the repository linter summary only in CI reports
neilime f068d8b
ci: adopt separate test and lint report comments
neilime 291cb6a
ci: display lint before tests in reports
neilime 690939e
ci: refresh reporting providers after Common 5.0.0
neilime 82670c0
refactor(ci): validate production images with the shared Goss action
neilime baf1480
fix(ci): track Goss updates and use shared lint defaults
neilime File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "extends": ["@commitlint/config-conventional"], | ||
| "rules": { | ||
| "subject-case": [ | ||
| 1, | ||
| "never", | ||
| ["sentence-case", "start-case", "pascal-case", "upper-case"] | ||
| ], | ||
| "header-max-length": [1, "always", 100], | ||
| "body-max-line-length": [1, "always", 100], | ||
| "footer-max-line-length": [1, "always", 100] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/common-utils:2": { | ||
| "version": "2.7.2", | ||
| "resolved": "ghcr.io/devcontainers/features/common-utils@sha256:08e5a6ad4b672301c2010944217aeea4f428a87f4349d9bbf8bc97211238674b", | ||
| "integrity": "sha256:08e5a6ad4b672301c2010944217aeea4f428a87f4349d9bbf8bc97211238674b" | ||
| }, | ||
| "ghcr.io/devcontainers/features/docker-in-docker:4": { | ||
| "version": "4.1.3", | ||
| "resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:fae40f3c8be5a7c3b0db344c1d30341bc2c91ba38d1d5b14cd2ad72e6d65d084", | ||
| "integrity": "sha256:fae40f3c8be5a7c3b0db344c1d30341bc2c91ba38d1d5b14cd2ad72e6d65d084" | ||
| }, | ||
| "ghcr.io/devcontainers/features/github-cli:1": { | ||
| "version": "1.1.3", | ||
| "resolved": "ghcr.io/devcontainers/features/github-cli@sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2", | ||
| "integrity": "sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2" | ||
| }, | ||
| "ghcr.io/devcontainers/features/go:1": { | ||
| "version": "1.4.1", | ||
| "resolved": "ghcr.io/devcontainers/features/go@sha256:2f2ed290df9a5f1841340b14cb8a287cf0574a816967dd84dcfe42fdd97b897e", | ||
| "integrity": "sha256:2f2ed290df9a5f1841340b14cb8a287cf0574a816967dd84dcfe42fdd97b897e" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "name": "hoverkraft-tech/http-header-authenticator", | ||
| "image": "mcr.microsoft.com/devcontainers/base:debian@sha256:41ff7ce12ec45f2704f27a6e091831186ad922ec8112e6339425bfefdf5a70f9", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/common-utils:2": { | ||
| "configureZshAsDefaultShell": true | ||
| }, | ||
| "ghcr.io/devcontainers/features/docker-in-docker:4": { | ||
| "moby": false | ||
| }, | ||
| "ghcr.io/devcontainers/features/github-cli:1": {}, | ||
| "ghcr.io/devcontainers/features/go:1": { | ||
| "version": "1.27.4", | ||
| "golangciLintVersion": "2.15.0" | ||
| } | ||
| }, | ||
| "remoteUser": "vscode", | ||
| "init": true, | ||
| "postCreateCommand": "make setup", | ||
| "waitFor": "postCreateCommand", | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "eamodio.gitlens", | ||
| "github.vscode-github-actions", | ||
| "ms-vscode.makefile-tools", | ||
| "redhat.vscode-yaml", | ||
| "golang.Go" | ||
| ], | ||
| "settings": {} | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,4 +35,6 @@ helm | |
| .golangci.yml | ||
| coverage.out | ||
| Makefile | ||
| skaffold.yaml | ||
| /.devcontainer | ||
| /super-linter-output | ||
| /super-linter.log | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| [*.py] | ||
| indent_size = 4 | ||
|
|
||
| [*.go] | ||
| indent_style = tab | ||
|
|
||
| [Makefile] | ||
| indent_style = tab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,39 +1,63 @@ | ||
| # .github/dependabot.yml | ||
| --- | ||
| version: 2 | ||
| updates: | ||
|
|
||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| open-pull-requests-limit: 20 | ||
| - package-ecosystem: github-actions | ||
| directory: / | ||
| commit-message: | ||
| prefix: build | ||
| include: scope | ||
| cooldown: | ||
| default-days: 7 | ||
| open-pull-requests-limit: 10 | ||
| schedule: | ||
| interval: weekly | ||
| day: friday | ||
| time: "04:00" | ||
| groups: | ||
| github-actions-dependencies: | ||
| patterns: | ||
| - '*' | ||
| patterns: ["*"] | ||
| - package-ecosystem: gomod | ||
| directory: / | ||
| commit-message: | ||
| prefix: build | ||
| include: scope | ||
| cooldown: | ||
| default-days: 7 | ||
| open-pull-requests-limit: 10 | ||
| schedule: | ||
| interval: "weekly" | ||
| interval: weekly | ||
| day: friday | ||
| time: '04:00' | ||
|
|
||
| - package-ecosystem: "docker" | ||
| directory: "/" | ||
| open-pull-requests-limit: 20 | ||
| time: "04:10" | ||
| groups: | ||
| docker-dependencies: | ||
| patterns: | ||
| - '*' | ||
| gomod-dependencies: | ||
| patterns: ["*"] | ||
| - package-ecosystem: docker | ||
| directories: ["/", "/.github/linters"] | ||
| commit-message: | ||
| prefix: build | ||
| include: scope | ||
| cooldown: | ||
| default-days: 7 | ||
| open-pull-requests-limit: 10 | ||
| schedule: | ||
| interval: "weekly" | ||
| interval: weekly | ||
| day: friday | ||
| time: '04:10' | ||
|
|
||
| - package-ecosystem: "gomod" | ||
| directory: "/" | ||
| open-pull-requests-limit: 20 | ||
| time: "04:20" | ||
| groups: | ||
| go-dependencies: | ||
| patterns: | ||
| - '*' | ||
| docker-dependencies: | ||
| patterns: ["*"] | ||
| - package-ecosystem: devcontainers | ||
| directory: / | ||
| commit-message: | ||
| prefix: build | ||
| include: scope | ||
| cooldown: | ||
| default-days: 7 | ||
| open-pull-requests-limit: 10 | ||
| schedule: | ||
| interval: "weekly" | ||
| interval: weekly | ||
| day: friday | ||
| time: '04:20' | ||
| time: "04:30" | ||
| groups: | ||
| devcontainers-dependencies: | ||
| patterns: ["*"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| quiet: true | ||
| # Supply the required synthetic authentication value so Checkov can render and scan the chart. | ||
| # This is a Helm values input, not a scan exclusion. | ||
| var-file: | ||
| - helm/chart/ci/default-values.yaml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| extends: default | ||
| rules: | ||
| line-length: | ||
| max: 160 | ||
| allow-non-breakable-words: true | ||
| allow-non-breakable-inline-mappings: true | ||
| truthy: | ||
| check-keys: false | ||
| comments: | ||
| min-spaces-from-content: 1 | ||
| # Helm templates are validated after rendering by the chart and security checks. | ||
| ignore: | | ||
| **/helm/chart/templates/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # TODO: pin the release of https://github.com/hoverkraft-tech/docker-base-images/pull/310. | ||
| FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:pr-310-b5fda05@sha256:c78bd0f4672ce61fc393d4081d15dcf41002d9b4455e35723c1644c007da522b | ||
|
|
||
| ARG UID=1000 | ||
| ARG GID=1000 | ||
| USER ${UID}:${GID} | ||
| HEALTHCHECK --interval=5m --timeout=10s --start-period=30s --retries=3 CMD ["/bin/sh", "-c", "test -d /github/home"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # FIXME: Remove this scoped exception when Actionlint supports code-quality. | ||
| # https://github.com/rhysd/actionlint/pull/674 | ||
|
|
||
| paths: | ||
| .github/workflows/__shared-ci.yml: | ||
| ignore: | ||
| - ^unknown permission scope "code-quality"\. | ||
| .github/workflows/main-ci.yml: | ||
| ignore: | ||
| - ^unknown permission scope "code-quality"\. | ||
| .github/workflows/pull-request-ci.yml: | ||
| ignore: | ||
| - ^unknown permission scope "code-quality"\. | ||
| .github/workflows/release.yml: | ||
| ignore: | ||
| - ^unknown permission scope "code-quality"\. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| # Project images are published to Docker Hub and GitHub Container Registry. | ||
| ksv0125: | ||
| trusted_registries: | ||
| - docker.io | ||
| - ghcr.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| --- | ||
| exit-code: 1 | ||
| exit-on-eol: 2 | ||
| scan: | ||
| disable-telemetry: true | ||
| scanners: | ||
| - vuln | ||
| - misconfig | ||
| - secret | ||
| misconfiguration: | ||
| helm: | ||
| values: | ||
| - helm/chart/ci/default-values.yaml | ||
| rego: | ||
| data: | ||
| - .github/linters/trivy-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Pull request | ||
|
|
||
| ## Change | ||
|
|
||
| Describe the problem and resulting behavior. | ||
|
|
||
| ## Validation | ||
|
|
||
| List the checks run and any behavior that still needs verification. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.