Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
94d5e3a
chore(deps): bump github/codeql-action in the actions group (#933)
dependabot[bot] Jan 22, 2025
ece3f9b
chore(deps): bump golang from `51a6466` to `8c10f21` (#932)
dependabot[bot] Jan 22, 2025
9bcb74a
chore(deps): bump the actions group with 2 updates (#934)
dependabot[bot] Jan 23, 2025
b382259
chore(deps): bump the actions group with 3 updates (#935)
dependabot[bot] Jan 24, 2025
e241a05
chore(deps): bump the actions group with 2 updates (#937)
dependabot[bot] Jan 27, 2025
2fccc0b
chore(deps): bump google.golang.org/protobuf in the gomod group (#936)
dependabot[bot] Jan 27, 2025
4df1b0a
chore(deps): bump github/codeql-action in the actions group (#938)
dependabot[bot] Jan 28, 2025
d913a28
chore(deps): bump the gomod group with 2 updates (#939)
dependabot[bot] Jan 30, 2025
7bc1970
chore(deps): bump github/codeql-action in the actions group (#940)
dependabot[bot] Jan 31, 2025
40f1f8f
feat: adds cert-utility templates and documentation. (#889)
ianhundere Feb 3, 2025
2c3d6c6
Fix codeowners syntax, add dep-maintainers (#944)
Hayden-IO Feb 5, 2025
856f432
chore(deps): bump golang from `8c10f21` to `e213430` (#943)
dependabot[bot] Feb 5, 2025
355d253
chore(deps): bump golang from 1.23.5 to 1.23.6 in the docker group (#…
dependabot[bot] Feb 5, 2025
d0bd50a
chore(deps): bump the actions group with 2 updates (#946)
dependabot[bot] Feb 5, 2025
5465725
chore(deps): bump google.golang.org/protobuf in the gomod group (#947)
dependabot[bot] Feb 6, 2025
db08398
chore(deps): bump github/codeql-action in the actions group (#948)
dependabot[bot] Feb 7, 2025
3340648
chore(deps): bump golangci/golangci-lint-action in the actions group …
dependabot[bot] Feb 10, 2025
a7648e2
chore(deps): bump the actions group with 2 updates (#950)
dependabot[bot] Feb 11, 2025
b368fd0
chore(deps): bump golang.org/x/net from 0.34.0 to 0.35.0 (#951)
dependabot[bot] Feb 11, 2025
4dac80c
chore(deps): bump golangci/golangci-lint-action in the actions group …
dependabot[bot] Feb 14, 2025
f485ba0
Delete CODE_OF_CONDUCT.md (#959)
Feb 22, 2025
0452534
chore(deps): bump golang from 1.23.6 to 1.24.0 in the docker group (#…
dependabot[bot] Feb 24, 2025
accc48f
chore(deps): bump github.com/go-jose/go-jose/v4 from 4.0.2 to 4.0.5 (…
dependabot[bot] Feb 25, 2025
b529451
chore(deps): bump golang from `2b1cbf2` to `5255fad` (#963)
dependabot[bot] Feb 25, 2025
9807912
chore(deps): bump the gomod group across 1 directory with 5 updates (…
dependabot[bot] Feb 25, 2025
758b1f3
chore(deps): bump the actions group across 1 directory with 7 updates…
dependabot[bot] Feb 25, 2025
07b1f37
chore(deps): bump golang from `5255fad` to `cd0c949` (#969)
dependabot[bot] Feb 26, 2025
019ab6e
chore(deps): bump github.com/prometheus/client_golang (#968)
dependabot[bot] Feb 26, 2025
d9b3c38
chore(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#967)
dependabot[bot] Feb 26, 2025
fa09dfe
chore(deps): bump github.com/go-playground/validator/v10 (#966)
dependabot[bot] Feb 26, 2025
d149d42
chore(deps): bump github.com/go-jose/go-jose/v3 from 3.0.3 to 3.0.4 (…
dependabot[bot] Feb 27, 2025
e6d63a9
chore(deps): bump codecov/codecov-action in the actions group (#971)
dependabot[bot] Feb 27, 2025
0dc2689
chore(deps): bump actions/cache from 4.2.1 to 4.2.2 in the actions gr…
dependabot[bot] Feb 28, 2025
9ca8d82
chore(deps): bump golang from `cd0c949` to `3f74443` (#974)
dependabot[bot] Feb 28, 2025
95148b2
chore(deps): bump github.com/spf13/cobra from 1.8.1 to 1.9.1 (#964)
dependabot[bot] Feb 28, 2025
81a7efa
chore(deps): bump golang from 1.24.0 to 1.24.1 in the docker group (#…
dependabot[bot] Mar 5, 2025
2ffd77e
chore(deps): bump github.com/prometheus/client_golang in the gomod gr…
dependabot[bot] Mar 5, 2025
49f5789
workflows: Check that generated code is up-to-date (#982)
jku Mar 10, 2025
1abfce0
chore(deps): bump github/codeql-action in the actions group (#983)
dependabot[bot] Mar 10, 2025
2d27215
chore(deps): bump go.step.sm/crypto from 0.57.1 to 0.59.1 (#990)
jku Mar 12, 2025
2b2d6ff
chore(deps): bump github.com/sigstore/sigstore/pkg/signature/kms/aws …
dependabot[bot] Mar 12, 2025
7f4f319
chore(deps): bump github.com/sigstore/sigstore/pkg/signature/kms/hash…
dependabot[bot] Mar 12, 2025
6fda2b0
chore(deps): bump github.com/sigstore/sigstore/pkg/signature/kms/azur…
dependabot[bot] Mar 12, 2025
e7a9174
chore(deps): bump github.com/sigstore/sigstore/pkg/signature/kms/gcp …
dependabot[bot] Mar 12, 2025
05fa11a
chore(deps): bump golang.org/x/net from 0.35.0 to 0.36.0 (#991)
dependabot[bot] Mar 13, 2025
6c47b6b
chore(deps): bump golang from `c5adecd` to `8678013` (#995)
dependabot[bot] Mar 13, 2025
5a8f018
chore(deps): bump golangci/golangci-lint-action in the actions group …
dependabot[bot] Mar 13, 2025
0002b9d
chore(deps): bump golang.org/x/net from 0.36.0 to 0.37.0 (#994)
dependabot[bot] Mar 13, 2025
14bff16
chore(deps): bump github.com/go-openapi/swag in the gomod group (#992)
dependabot[bot] Mar 13, 2025
2bcc0c5
chore(deps): bump github.com/sigstore/sigstore from 1.8.15 to 1.9.1 (…
dependabot[bot] Mar 13, 2025
f452f4e
chore(deps): bump cloud.google.com/go/security in the gomod group (#997)
dependabot[bot] Mar 14, 2025
e939243
chore(deps): bump golang from `8678013` to `fa145a3` (#998)
dependabot[bot] Mar 14, 2025
ddb0233
Support self signed certificate chain (#989)
jku Mar 14, 2025
e1d88a8
chore(deps): bump github.com/go-openapi/errors in the gomod group (#1…
dependabot[bot] Mar 18, 2025
bfc494c
chore(deps): bump golangci/golangci-lint-action in the actions group …
dependabot[bot] Mar 18, 2025
a3eca82
chore(deps): bump golang from `fa145a3` to `762bb9c` (#1001)
dependabot[bot] Mar 18, 2025
edee5bd
chore(deps): bump golang from `762bb9c` to `af0bb30` (#1003)
dependabot[bot] Mar 19, 2025
7201f83
chore(deps): bump golang from `af0bb30` to `52ff1b3` (#1006)
dependabot[bot] Mar 20, 2025
e78d085
chore(deps): bump the actions group across 1 directory with 4 updates…
dependabot[bot] Mar 20, 2025
adca43a
chore(deps): bump github.com/spf13/viper from 1.19.0 to 1.20.0 (#999)
dependabot[bot] Mar 26, 2025
bccdc05
chore(deps): bump github/codeql-action in the actions group (#1009)
dependabot[bot] Mar 26, 2025
d07549c
chore(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 (#…
dependabot[bot] Mar 26, 2025
9515fea
chore(deps): bump google.golang.org/protobuf (#1012)
dependabot[bot] Mar 26, 2025
6b527e7
add initial fuzzing targets (#1013)
bobcallaway Mar 26, 2025
d6b9d39
chore(deps): bump github.com/spf13/viper in the gomod group (#1014)
dependabot[bot] Mar 27, 2025
6a3e556
chore(deps): bump go.step.sm/crypto from 0.59.1 to 0.60.0 (#1016)
dependabot[bot] Mar 27, 2025
544f1a0
chore(deps): bump sigs.k8s.io/release-utils from 0.8.4 to 0.11.1 (#1015)
dependabot[bot] Mar 27, 2025
aa628d3
chore(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 (#1017)
dependabot[bot] Mar 28, 2025
9a33098
enable goleak detection, fix leak in tests (#1019)
bobcallaway Mar 30, 2025
25cb771
get full coverage on codeql (#1020)
bobcallaway Mar 30, 2025
deb3cf2
chore(deps): bump golangci/golangci-lint-action from 6.5.2 to 7.0.0 (…
dependabot[bot] Mar 30, 2025
ec2a9e3
zizmor fixes (#1021)
bobcallaway Mar 30, 2025
9c7dd02
expose validity period of signing cert as prometheus metric (#1018)
bobcallaway Mar 31, 2025
3df210e
chore(deps): bump github.com/go-playground/validator/v10 (#1023)
dependabot[bot] Mar 31, 2025
2ed3241
chore(deps): bump goreleaser/goreleaser-action in the actions group (…
dependabot[bot] Mar 31, 2025
8b8975c
add changelog for v1.2.5 release (#1025)
bobcallaway Mar 31, 2025
1ec5715
allow operators to customize the HTTP header used to customize reques…
bobcallaway Apr 7, 2025
15ba122
chore(deps): bump golang from 1.24.1 to 1.24.2 in the docker group (#…
dependabot[bot] Apr 7, 2025
9a617a4
chore(deps): bump github/codeql-action in the actions group (#1028)
dependabot[bot] Apr 7, 2025
f7a72e5
Compose quality-of-life improvements (#1027)
jku Apr 7, 2025
b9e8d94
chore(deps): bump golang.org/x/net from 0.38.0 to 0.39.0 (#1032)
dependabot[bot] Apr 8, 2025
96b929e
chore(deps): bump github.com/prometheus/client_golang (#1031)
dependabot[bot] Apr 8, 2025
3c3ddb3
chore(deps): bump golang from `991aa6a` to `37b19a8` (#1030)
dependabot[bot] Apr 8, 2025
58eb588
chore(deps): bump golang from `37b19a8` to `1ecc479` (#1035)
dependabot[bot] Apr 9, 2025
62dd1da
chore(deps): bump github/codeql-action in the actions group (#1033)
dependabot[bot] Apr 9, 2025
089d8f9
chore(deps): bump the gomod group with 5 updates (#1034)
dependabot[bot] Apr 9, 2025
6fd4dc3
chore(deps): bump the actions group across 1 directory with 2 updates…
dependabot[bot] Apr 15, 2025
0412f23
chore(deps): bump golang.org/x/crypto in /hack/tools (#1038)
dependabot[bot] Apr 15, 2025
f036719
chore(deps): bump golang from `1ecc479` to `18a1f2d` (#1036)
dependabot[bot] Apr 15, 2025
8ba029b
chore(deps): bump golang from `18a1f2d` to `1ecc479` (#1041)
dependabot[bot] Apr 16, 2025
3e30780
Do not assume leaf certificate is first in chain (#1040)
Apr 16, 2025
5dd8301
chore(deps): bump go.step.sm/crypto from 0.60.0 to 0.61.0 (#1043)
dependabot[bot] Apr 16, 2025
679cce9
chore(deps): bump cloud.google.com/go/security in the gomod group (#1…
dependabot[bot] Apr 16, 2025
291f4a7
Add changelog for v1.2.6 (#1044)
Apr 16, 2025
2180495
Update goreleaser to version 2 (#1045)
Apr 17, 2025
03cc860
chore(deps): bump golang (#1046)
dependabot[bot] Apr 18, 2025
a100938
chore(deps): bump sigstore/cosign-installer in the actions group (#1048)
dependabot[bot] Apr 23, 2025
815fe94
move to k8s yaml library (#1049)
bobcallaway Apr 23, 2025
35cd6c5
Fix --http-ping-only flag to not affect https listener (#1051)
mktgbnk Apr 23, 2025
07fa4f5
chore(deps): bump github/codeql-action in the actions group (#1052)
dependabot[bot] Apr 24, 2025
b0ccb42
chore(deps): bump anchore/sbom-action in the actions group (#1054)
dependabot[bot] Apr 25, 2025
0464c9b
chore(deps): bump the gomod group with 5 updates (#1055)
dependabot[bot] Apr 25, 2025
684e04a
Bump Tink to v2 (#1053)
Apr 25, 2025
369cb86
fetch-tsa-certs: Add "--org-name" (#1056)
jku Apr 25, 2025
1c53bf3
chore(deps): bump golang from `d9db321` to `065cb8c` (#1057)
dependabot[bot] Apr 29, 2025
2738c92
chore(deps): bump go.step.sm/crypto from 0.61.0 to 0.62.0 (#1058)
dependabot[bot] Apr 29, 2025
2645a70
chore(deps): bump golang from `065cb8c` to `30baaea` (#1059)
dependabot[bot] Apr 30, 2025
a3c7c3c
chore(deps): bump go.step.sm/crypto from 0.62.0 to 0.63.0 (#1061)
dependabot[bot] May 2, 2025
4af2006
chore(deps): bump github/codeql-action in the actions group (#1060)
dependabot[bot] May 3, 2025
c206d28
chore(deps): bump golang.org/x/net from 0.39.0 to 0.40.0 (#1063)
dependabot[bot] May 6, 2025
ced657b
chore(deps): bump golangci/golangci-lint-action from 7.0.0 to 8.0.0 (…
dependabot[bot] May 6, 2025
725b9bd
chore(deps): bump golang from 1.24.2 to 1.24.3 in the docker group (#…
dependabot[bot] May 7, 2025
013349b
Fix: Disallow timestamp requests where digest length is inconsistent …
aaronlew02 May 7, 2025
7235760
chore(deps): bump actions/setup-go in the actions group (#1067)
dependabot[bot] May 8, 2025
3118fe7
chore(deps): bump github.com/tink-crypto/tink-go-hcvault/v2 (#1068)
dependabot[bot] May 9, 2025
1480c5e
Add changelog for v1.2.7 (#1069)
May 9, 2025
33d0e34
chore(deps): bump anchore/sbom-action in the actions group (#1070)
dependabot[bot] May 15, 2025
9fd97c3
chore(deps): bump golang from `39d9e7d` to `86b4cff` (#1071)
dependabot[bot] May 15, 2025
9421c5a
chore(deps): bump the actions group with 2 updates (#1072)
dependabot[bot] May 16, 2025
4c2836c
chore(deps): bump go.step.sm/crypto from 0.63.0 to 0.64.0 (#1073)
dependabot[bot] May 20, 2025
43baf27
chore(deps): bump golang from `86b4cff` to `02a2275` (#1074)
dependabot[bot] May 22, 2025
a7659de
chore(deps): bump golang from `02a2275` to `4c0a181` (#1075)
dependabot[bot] May 23, 2025
aca5eb0
chore(deps): bump go.step.sm/crypto from 0.64.0 to 0.65.0 (#1076)
dependabot[bot] May 29, 2025
f9be8d4
chore(deps): bump go.step.sm/crypto from 0.65.0 to 0.66.0 (#1077)
dependabot[bot] May 30, 2025
50a0280
chore(deps): bump ossf/scorecard-action in the actions group (#1081)
dependabot[bot] Jun 2, 2025
f4b0333
chore(deps): bump golang from `4c0a181` to `81bf592` (#1080)
dependabot[bot] Jun 2, 2025
0fa3135
Relax EKU chaining rules verification for intermediate certs (#1078)
mktgbnk Jun 3, 2025
7c693ae
Allow full issuing chain in response (#1082)
Jun 3, 2025
4d715a6
Add CHANGELOG for v1.2.8 (#1083)
Jun 3, 2025
f66a778
Merge remote-tracking branch 'upstream'
tommyd450 Jun 4, 2025
769914c
Updating packages to 1.23.6
tommyd450 Jun 4, 2025
6c12e6d
Updating Hack Tools
tommyd450 Jun 4, 2025
5543a8d
Updating Konflux Unit Tests
tommyd450 Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/build-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@ jobs:
contents: read

runs-on: ubuntu-latest
outputs:
hashes: ${{ steps.hash.outputs.hashes }}
tag_name: ${{ steps.tag.outputs.tag_name }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: './go.mod'
check-latest: true

- uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
- uses: anchore/sbom-action/download-syft@df80a981bc6edbc4e220a492d3cbe9f5547a6e75 # v0.17.9
- uses: imjasonh/setup-ko@d982fec422852203cfb2053a8ec6ad302280d04d # v0.8
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
- uses: anchore/sbom-action/download-syft@e11c554f704a0b820cbf8c51673f6945e0731532 # v0.20.0
- uses: imjasonh/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9

- name: Set LDFLAGS
id: ldflags
Expand All @@ -35,7 +34,7 @@ jobs:

- name: Run GoReleaser
id: run-goreleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.2.1 # zizmor: ignore[cache-poisoning]
with:
version: latest
args: release --clean --skip=sign --snapshot
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/codeql_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,25 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: './go.mod'
check-latest: true

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
with:
languages: ${{ matrix.language }}
build-mode: manual
dependency-caching: true

- name: Autobuild
uses: github/codeql-action/autobuild@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
- name: Build Code
run: |
make all test

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,5 @@ permissions:

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
name: License and Vulnerability Scan
uses: sigstore/community/.github/workflows/reusable-dependency-review.yml@9b1b5aca605f92ec5b1bf3681b1e61b3dbc420cc
17 changes: 10 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

concurrency: cut-release

permissions: read-all
permissions: {}

jobs:
release:
Expand All @@ -21,15 +21,18 @@ jobs:
tag_name: ${{ steps.tag.outputs.tag_name }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: './go.mod'
check-latest: true
cache: false # avoid cache-poisoning attacks

- uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
- uses: anchore/sbom-action/download-syft@df80a981bc6edbc4e220a492d3cbe9f5547a6e75 # v0.17.9
- uses: imjasonh/setup-ko@d982fec422852203cfb2053a8ec6ad302280d04d # v0.8
- uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
- uses: anchore/sbom-action/download-syft@e11c554f704a0b820cbf8c51673f6945e0731532 # v0.20.0
- uses: imjasonh/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9

- name: Set LDFLAGS
id: ldflags
Expand All @@ -40,7 +43,7 @@ jobs:

- name: Run GoReleaser
id: run-goreleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
with:
version: latest
args: release --clean
Expand Down Expand Up @@ -70,7 +73,7 @@ jobs:
actions: read # To read the workflow path.
id-token: write # To sign the provenance.
contents: write # To add assets to a release.
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0
with:
base64-subjects: "${{ needs.release.outputs.hashes }}"
upload-assets: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -58,14 +58,14 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
with:
sarif_file: results.sarif
45 changes: 36 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ on:
push:
branches:
- 'main'
- 'updates'
pull_request:

permissions: read-all
permissions: {}

jobs:
unit-tests:
Expand All @@ -36,8 +35,10 @@ jobs:

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
# In order:
# * Module download cache
Expand All @@ -50,7 +51,7 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: './go.mod'
check-latest: true
Expand All @@ -59,7 +60,7 @@ jobs:
- name: Run Go tests
run: go test -covermode atomic -coverprofile coverage.txt $(go list ./... | grep -v third_party/)
- name: Upload Coverage Report
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
with:
env_vars: OS
- name: Run Go tests w/ `-race`
Expand All @@ -69,9 +70,13 @@ jobs:
license-check:
name: license boilerplate check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
persist-credentials: false
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: './go.mod'
check-latest: true
Expand All @@ -85,15 +90,37 @@ jobs:
golangci:
name: lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
persist-credentials: false
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: './go.mod'
check-latest: true

- name: golangci-lint
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: v1.61
version: v2.1
args: --timeout=10m --verbose

gen-check:
name: Check generated code
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: './go.mod'
check-latest: true
- name: Verify generated code is unchanged
run: |
make gen
git diff --exit-code
54 changes: 35 additions & 19 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,46 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version: "2"
run:
issues-exit-code: 1
linters:
enable:
- errcheck
- gofmt
- goimports
- gosec
- gocritic
- gosec
- misspell
- revive
- unused
output:
uniq-by-line: false
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
- gosec
path: _test\.go
- linters:
- staticcheck
path: pkg/signer/tink.go
text: SA1019
paths:
- third_party$
- builtin$
- examples$
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
- path: pkg/signer/tink.go
linters:
- staticcheck
text: SA1019
max-issues-per-linter: 0
max-same-issues: 0
run:
issues-exit-code: 1
timeout: 10m
uniq-by-line: false
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
6 changes: 4 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
project_name: timestamp-authority

version: 2

env:
- GO111MODULE=on
- CGO_ENABLED=0
Expand Down Expand Up @@ -76,15 +78,15 @@ signs:
artifacts: checksum

archives:
- format: binary
- formats: [ "binary" ]
name_template: "{{ .Binary }}"
allow_different_binary_count: true

checksum:
name_template: "{{ .ProjectName }}_checksums.txt"

snapshot:
name_template: SNAPSHOT-{{ .ShortCommit }}
version_template: SNAPSHOT-{{ .ShortCommit }}

release:
prerelease: auto
Expand Down
2 changes: 1 addition & 1 deletion .tekton/fetch-tsa-certs-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
CGO_ENABLED=0 go build -trimpath -o bin/timestamp-server ./cmd/timestamp-server
go test ./...
- name: go_base_image
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder@sha256:356986205e66dcc03ef9a9fef5a7a13d6d59c29efacf1d971f9224c678932cf0
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23@sha256:44fd8f88f3b6463cda15571260f9ca3a0b78d3c8c8827a338e04ab3a23581a88
pipelineRef:
params:
- name: url
Expand Down
2 changes: 1 addition & 1 deletion .tekton/fetch-tsa-certs-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
CGO_ENABLED=0 go build -trimpath -o bin/timestamp-server ./cmd/timestamp-server
go test ./...
- name: go_base_image
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder@sha256:356986205e66dcc03ef9a9fef5a7a13d6d59c29efacf1d971f9224c678932cf0
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23@sha256:44fd8f88f3b6463cda15571260f9ca3a0b78d3c8c8827a338e04ab3a23581a88
pipelineRef:
params:
- name: url
Expand Down
2 changes: 1 addition & 1 deletion .tekton/timestamp-authority-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
CGO_ENABLED=0 go build -trimpath -o bin/timestamp-server ./cmd/timestamp-server
go test ./...
- name: go_base_image
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder@sha256:356986205e66dcc03ef9a9fef5a7a13d6d59c29efacf1d971f9224c678932cf0
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23@sha256:44fd8f88f3b6463cda15571260f9ca3a0b78d3c8c8827a338e04ab3a23581a88
pipelineRef:
params:
- name: url
Expand Down
2 changes: 1 addition & 1 deletion .tekton/timestamp-authority-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
CGO_ENABLED=0 go build -trimpath -o bin/timestamp-server ./cmd/timestamp-server
go test ./...
- name: go_base_image
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder@sha256:356986205e66dcc03ef9a9fef5a7a13d6d59c29efacf1d971f9224c678932cf0
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23@sha256:44fd8f88f3b6463cda15571260f9ca3a0b78d3c8c8827a338e04ab3a23581a88
pipelineRef:
params:
- name: url
Expand Down
Loading
Loading