Skip to content

Commit 20a45c9

Browse files
authoredMar 24, 2025··
Merge pull request #231 from securesign/updatetoV1.6.6
Update to v1.6.6
2 parents 3ab3df0 + 4bc1091 commit 20a45c9

31 files changed

+765
-847
lines changed
 

‎.github/workflows/codeql-analysis.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,39 @@ on:
2424
schedule:
2525
- cron: '45 10 * * 1'
2626

27-
permissions:
28-
contents: read
29-
security-events: write
27+
permissions: {}
3028

3129
jobs:
3230
analyze:
3331
name: Analyze
3432
runs-on: ubuntu-latest
3533

34+
permissions:
35+
contents: read
36+
security-events: write
37+
3638
strategy:
3739
fail-fast: false
3840
matrix:
3941
language: [ 'go' ]
4042
steps:
4143
- name: Checkout repository
42-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
44+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45+
with:
46+
persist-credentials: false
4347

44-
# TODO: uncomment when we bump to go1.22 in go.mod
45-
# - name: Extract version of Go to use
46-
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
48+
- name: Extract version of Go to use
49+
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile)" >> $GITHUB_ENV
4750

48-
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
51+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
4952
with:
50-
go-version: '1.22'
53+
go-version: ${{ env.GOVERSION }}
5154
check-latest: true
5255

5356
- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
5457
name: Install protobuf
5558
with:
56-
version: '24.0'
59+
version: '29.1'
5760
repo-token: ${{ secrets.GITHUB_TOKEN }}
5861

5962
# Initializes the CodeQL tools for scanning.

‎.github/workflows/container-build.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,27 @@ jobs:
3333
contents: read
3434

3535
steps:
36-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
with:
38+
persist-credentials: false
39+
3740
- uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
3841

39-
# TODO: uncomment when we bump to go1.22 in go.mod
40-
# - name: Extract version of Go to use
41-
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
42+
- name: Extract version of Go to use
43+
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile)" >> $GITHUB_ENV
4244

43-
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
45+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
4446
with:
4547
go-version: '${{ env.GOVERSION }}'
4648
check-latest: true
4749

4850
- name: deps
4951
run: sudo apt-get update && sudo apt-get install -yq libpcsclite-dev
5052

51-
- uses: ko-build/setup-ko@3aebd0597dc1e9d1a26bcfdb7cbeb19c131d3037 # v0.7
53+
- uses: ko-build/setup-ko@d982fec422852203cfb2053a8ec6ad302280d04d # v0.8
5254

5355
- name: Set up Cloud SDK
54-
uses: google-github-actions/auth@8254fb75a33b976a221574d287e93919e6a36f70 # v2.1.6
56+
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
5557
with:
5658
workload_identity_provider: 'projects/498091336538/locations/global/workloadIdentityPools/githubactions/providers/sigstore-fulcio'
5759
service_account: 'github-actions-fulcio@projectsigstore.iam.gserviceaccount.com'

‎.github/workflows/main.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,25 @@ permissions:
2626

2727
jobs:
2828
build:
29-
runs-on: ubuntu-20.04
29+
runs-on: ubuntu-latest
3030

3131
steps:
32-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
32+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
with:
34+
persist-credentials: false
3335

3436
- name: Extract version of Go to use
35-
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
37+
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile)" >> $GITHUB_ENV
3638

37-
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
39+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
3840
with:
3941
go-version: ${{ env.GOVERSION }}
4042
check-latest: true
4143

4244
- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
4345
name: Install protobuf
4446
with:
45-
version: '28.0'
47+
version: '29.3'
4648
repo-token: ${{ secrets.GITHUB_TOKEN }}
4749

4850
- name: Build
@@ -52,7 +54,7 @@ jobs:
5254
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
5355

5456
- name: Upload Coverage Report
55-
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
57+
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
5658

5759
- name: Ensure no files were modified as a result of the build
5860
run: git update-index --refresh && git diff-index --quiet -I"^\/\/\s+(-\s+)?protoc(-gen-go)?\s+v[0-9]+\.[0-9]+\.[0-9]+$" HEAD -- || git diff -I"^\/\/\s+(-\s+)?protoc(-gen-go)?\s+v[0-9]+\.[0-9]+\.[0-9]+$" --exit-code

‎.github/workflows/protoc-dependabot-hack.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
name: Ensure dependabot version checks
1414
runs-on: ubuntu-latest
1515
steps:
16-
1716
# update the version in these places manually when Dependabot proposes a change to it here:
1817
# 1. the version in main.yml used to install protoc
19-
- uses: protocolbuffers/protobuf@v28.2
18+
- uses: protocolbuffers/protobuf@v29.3

‎.github/workflows/scorecard_action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
id-token: write
2424
steps:
2525
- name: "Checkout code"
26-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727
with:
2828
persist-credentials: false
2929

@@ -44,7 +44,7 @@ jobs:
4444
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
4545
# format to the repository Actions tab.
4646
- name: "Upload artifact"
47-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
47+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
4848
with:
4949
name: SARIF file
5050
path: results.sarif

‎.github/workflows/validate-release.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
steps:
3434
- name: Check Signature
3535
run: |
36-
cosign verify ghcr.io/gythialy/golang-cross:v1.23.2-0@sha256:8feb33a131baabdef112d924a4379ff6b0a4f00a4854f97b0dc73742198638bd \
36+
cosign verify ghcr.io/gythialy/golang-cross:v1.23.4-0@sha256:fac6f9675e3e3a4ccc2b8cdab87b907cabae3a9c4e046d16816b9876315005e4 \
3737
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
38-
--certificate-identity "https://github.com/gythialy/golang-cross/.github/workflows/release-golang-cross.yml@refs/tags/v1.23.2-0"
38+
--certificate-identity "https://github.com/gythialy/golang-cross/.github/workflows/release-golang-cross.yml@refs/tags/v1.23.4-0"
3939
env:
4040
TUF_ROOT: /tmp
4141

@@ -44,10 +44,12 @@ jobs:
4444
needs:
4545
- check-signature
4646
container:
47-
image: ghcr.io/gythialy/golang-cross:v1.23.2-0@sha256:8feb33a131baabdef112d924a4379ff6b0a4f00a4854f97b0dc73742198638bd
47+
image: ghcr.io/gythialy/golang-cross:v1.23.4-0@sha256:fac6f9675e3e3a4ccc2b8cdab87b907cabae3a9c4e046d16816b9876315005e4
4848

4949
steps:
50-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
50+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51+
with:
52+
persist-credentials: false
5153

5254
# Error: fatal: detected dubious ownership in repository at '/__w/fulcio/fulcio'
5355
# To add an exception for this directory, call:

‎.github/workflows/verify-k8s.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ jobs:
2525
name: k8s manifest check
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
with:
30+
persist-credentials: false
2931

3032
- name: Extract version of Go to use
31-
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
33+
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile)" >> $GITHUB_ENV
3234

33-
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
35+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
3436
with:
3537
go-version: '${{ env.GOVERSION }}'
3638
check-latest: true
@@ -67,17 +69,19 @@ jobs:
6769
GIT_VERSION: test
6870

6971
steps:
70-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
72+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
73+
with:
74+
persist-credentials: false
7175

7276
- name: Extract version of Go to use
73-
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
77+
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile)" >> $GITHUB_ENV
7478

75-
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
79+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
7680
with:
7781
go-version: '${{ env.GOVERSION }}'
7882
check-latest: true
7983

80-
- uses: ko-build/setup-ko@3aebd0597dc1e9d1a26bcfdb7cbeb19c131d3037 # v0.7
84+
- uses: ko-build/setup-ko@d982fec422852203cfb2053a8ec6ad302280d04d # v0.8
8185

8286
- name: Setup Cluster
8387
uses: chainguard-dev/actions/setup-kind@29fb6e979a0b3efc79748a17e8cec08d0594cbfd # main

‎.github/workflows/verify.yml

+17-11
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ jobs:
2929
name: license boilerplate check
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
32+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
with:
34+
persist-credentials: false
3335

3436
- name: Extract version of Go to use
35-
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
37+
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile)" >> $GITHUB_ENV
3638

37-
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
39+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
3840
with:
3941
go-version: '${{ env.GOVERSION }}'
4042
check-latest: true
@@ -52,34 +54,38 @@ jobs:
5254
name: golangci-lint
5355
runs-on: ubuntu-latest
5456
steps:
55-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
57+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
with:
59+
persist-credentials: false
5660

5761
- name: deps
5862
run: sudo apt-get update && sudo apt-get install -yq libpcsclite-dev
5963

6064
- name: Extract version of Go to use
61-
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
65+
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile)" >> $GITHUB_ENV
6266

63-
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
67+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
6468
with:
6569
go-version: '${{ env.GOVERSION }}'
6670
check-latest: true
6771

6872
- name: golangci-lint
69-
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
73+
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0
7074
with:
71-
version: v1.61
75+
version: v1.63
7276

7377
oidc-config:
7478
name: oidc-config
7579
runs-on: ubuntu-latest
7680
steps:
77-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
81+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
82+
with:
83+
persist-credentials: false
7884

7985
- name: Extract version of Go to use
80-
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
86+
run: echo "GOVERSION=$(awk -F'[:@]' '/FROM golang/{print $2; exit}' Dockerfile)" >> $GITHUB_ENV
8187

82-
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
88+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
8389
with:
8490
go-version: '${{ env.GOVERSION }}'
8591
check-latest: true

‎.tekton/fulcio-pull-request.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
- name: go_unit_test
3636
value: true
3737
- name: go_base_image
38-
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder@sha256:356986205e66dcc03ef9a9fef5a7a13d6d59c29efacf1d971f9224c678932cf0
38+
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23@sha256:4805e1cb2d1bd9d3c5de5d6986056bbda94ca7b01642f721d83d26579d333c60
3939
taskRunSpecs:
4040
- pipelineTaskName: run-unit-test
4141
serviceAccountName: appstudio-pipeline

‎.tekton/fulcio-push.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- name: go_unit_test
3434
value: true
3535
- name: go_base_image
36-
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder@sha256:356986205e66dcc03ef9a9fef5a7a13d6d59c29efacf1d971f9224c678932cf0
36+
value: brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23@sha256:4805e1cb2d1bd9d3c5de5d6986056bbda94ca7b01642f721d83d26579d333c60
3737
taskRunSpecs:
3838
- pipelineTaskName: run-unit-test
3939
serviceAccountName: appstudio-pipeline

‎CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# v1.6.6
2+
3+
## Features
4+
5+
* Configure additional certificate extensions for Buildkite (#1903)
6+
* Relax gomod (#1909)
7+
* update builder to use go1.23.4 (#1883)
8+
* config: Add IBM OIDC provider (#1892)
9+
* Add Kaggle identity provider (#1850)
10+
11+
## Contributors
12+
13+
* Bob Callaway
14+
* Carlos Tadeu Panato Junior
15+
* Hayden B
16+
* James Healy
17+
* Stefan Berger
18+
* Trishank Karthik Kuppusamy
19+
120
# v1.6.5
221

322
## Features

‎Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
FROM golang:1.23.4@sha256:7ea4c9dcb2b97ff8ee80a67db3d44f98c8ffa0d191399197007d8459c1453041 AS builder
16+
FROM golang:1.23.5@sha256:51a6466e8dbf3e00e422eb0f7a97ac450b2d57b33617bbe8d2ee0bddcd9d0d37 AS builder
1717
ENV APP_ROOT=/opt/app-root
1818
ENV GOPATH=$APP_ROOT
1919

@@ -28,15 +28,15 @@ RUN go build -o server main.go
2828
RUN CGO_ENABLED=1 go build -gcflags "all=-N -l" -o server_debug main.go
2929

3030
# Multi-Stage production build
31-
FROM golang:1.23.4@sha256:7ea4c9dcb2b97ff8ee80a67db3d44f98c8ffa0d191399197007d8459c1453041 AS deploy
31+
FROM golang:1.23.5@sha256:51a6466e8dbf3e00e422eb0f7a97ac450b2d57b33617bbe8d2ee0bddcd9d0d37 AS deploy
3232

3333
# Retrieve the binary from the previous stage
3434
COPY --from=builder /opt/app-root/src/server /usr/local/bin/fulcio-server
3535
# Set the binary as the entrypoint of the container
3636
ENTRYPOINT ["/usr/local/bin/fulcio-server", "serve"]
3737

3838
# debug compile options & debugger
39-
FROM deploy as debug
39+
FROM deploy AS debug
4040
RUN go install github.com/go-delve/delve/cmd/dlv@v1.22.1
4141

4242
# overwrite server and include debugger

‎Dockerfile.ctfe_init

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
FROM golang:1.23.4@sha256:7ea4c9dcb2b97ff8ee80a67db3d44f98c8ffa0d191399197007d8459c1453041 AS builder
16+
FROM golang:1.23.5@sha256:51a6466e8dbf3e00e422eb0f7a97ac450b2d57b33617bbe8d2ee0bddcd9d0d37 AS builder
1717

1818
WORKDIR /root/
1919

@@ -22,4 +22,4 @@ ADD ./config/logid.sh /root/
2222
ADD ./config/ctfe /root/ctfe
2323
RUN chmod +x /root/logid.sh
2424

25-
CMD /root/logid.sh
25+
CMD ["/root/logid.sh"]

‎Dockerfile.fulcio-server.rh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder@sha256:356986205e66dcc03ef9a9fef5a7a13d6d59c29efacf1d971f9224c678932cf0 AS builder
16+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23@sha256:4805e1cb2d1bd9d3c5de5d6986056bbda94ca7b01642f721d83d26579d333c60 AS builder
1717
ENV APP_ROOT=/opt/app-root
1818
ENV GOPATH=$APP_ROOT
1919

0 commit comments

Comments
 (0)
Please sign in to comment.