Skip to content
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

chore: merge upstream v1-6-0 #166

Merged
merged 82 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
408e22d
Bump github.com/sigstore/sigstore/pkg/signature/kms/gcp
dependabot[bot] Mar 11, 2024
3d62eae
Bump google.golang.org/grpc from 1.62.0 to 1.62.1
dependabot[bot] Mar 11, 2024
4a7d8ef
Bump github.com/spiffe/go-spiffe/v2 from 2.1.7 to 2.2.0
dependabot[bot] Apr 8, 2024
532adb3
Bump sigs.k8s.io/release-utils from 0.7.7 to 0.8.1
dependabot[bot] Apr 8, 2024
4c10641
Bump codecov/codecov-action from 4.1.1 to 4.2.0
dependabot[bot] Apr 8, 2024
f97ab6f
Upgrade go to 1.22 (#1625)
cpanato Apr 9, 2024
f23580e
Bump codecov/codecov-action from 4.2.0 to 4.3.0 in the all group
dependabot[bot] Apr 9, 2024
61dc487
Bump the all group with 4 updates
dependabot[bot] Apr 10, 2024
6dcf082
switch to community repo of reusable-release (#1636)
bobcallaway Apr 12, 2024
4af0519
Bump github.com/googleapis/api-linter in /hack/tools in the all group
dependabot[bot] Apr 15, 2024
fcae9d4
Bump sigstore/cosign-installer from 3.4.0 to 3.5.0 in the all group
dependabot[bot] Apr 15, 2024
6f5e39b
Bump the all group with 2 updates
dependabot[bot] Apr 22, 2024
3d6f361
Bump go.step.sm/crypto from 0.44.3 to 0.44.6 in the all group
dependabot[bot] Apr 22, 2024
30348c6
Bump the all group with 2 updates
dependabot[bot] Apr 29, 2024
d6d364b
Bump golangci/golangci-lint-action from 4.0.0 to 5.0.0
dependabot[bot] Apr 29, 2024
cb92db0
Bump the all group with 2 updates
dependabot[bot] Apr 29, 2024
299bd5b
Bump the all group with 3 updates
dependabot[bot] May 6, 2024
b61a8eb
Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1
dependabot[bot] May 13, 2024
0ca013e
Bump the all group with 2 updates
dependabot[bot] May 13, 2024
65a7da7
Bump the all group across 1 directory with 2 updates
dependabot[bot] May 13, 2024
bc8fa5c
docs: Fix extensions for digest values requiring a type prefix (#1661)
facutuesca May 14, 2024
380feb7
oid-info: fix table render (#1662)
woodruffw May 15, 2024
f9db55f
update jobs to use go1.22.3 (#1660)
cpanato May 17, 2024
19623ed
Bump golang.org/x/net (#1640)
dependabot[bot] May 17, 2024
4aea086
Bump the all group with 3 updates
dependabot[bot] May 20, 2024
f8b6fbf
Bump go.step.sm/crypto from 0.44.8 to 0.45.0
dependabot[bot] May 20, 2024
3d81ab0
Bump codecov/codecov-action from 4.4.0 to 4.4.1 in the all group
dependabot[bot] May 27, 2024
ea71bad
Bump protocolbuffers/protobuf from 26.1 to 27.0 (#1674)
dependabot[bot] Jun 3, 2024
1e456dd
Bump github.com/spf13/viper from 1.18.2 to 1.19.0
dependabot[bot] Jun 10, 2024
5ed2c89
Adding support for configuration from yaml file (#1687)
javanlacerda Jun 11, 2024
ffce525
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity
dependabot[bot] Jun 11, 2024
a401d07
Bump the all group across 1 directory with 6 updates (#1699)
dependabot[bot] Jun 18, 2024
429a2bc
Bump go.step.sm/crypto from 0.45.0 to 0.47.1
dependabot[bot] Jun 18, 2024
28907eb
bump to go1.22.4 and update goreleaser and golangci-lint
cpanato Jun 22, 2024
cb436f3
update deprecated flags
cpanato Jun 22, 2024
c197c1f
Bump google.golang.org/api from 0.183.0 to 0.185.0
dependabot[bot] Jun 24, 2024
4a223e3
Bump github.com/spiffe/go-spiffe/v2 from 2.2.0 to 2.3.0
dependabot[bot] Jun 24, 2024
6d4ec9a
Bump github.com/google/certificate-transparency-go from 1.1.8 to 1.2.1
dependabot[bot] Jun 24, 2024
833f7db
Bump the all group across 1 directory with 4 updates
dependabot[bot] Jun 23, 2024
0975f16
Update README.md (#1700)
cpanato Jun 24, 2024
1e9cd3e
replace gopkg.in/square/go-jose.v2 to github.com/go-jose/go-jose/v4 (…
cpanato Jun 24, 2024
b278019
Add Chainguard OIDC provider. (#1703)
mattmoor Jun 25, 2024
d20d16a
Bump github.com/hashicorp/go-retryablehttp in the go_modules group
dependabot[bot] Jun 24, 2024
017eba1
Bump github.com/prometheus/common from 0.54.0 to 0.55.0
dependabot[bot] Jul 1, 2024
7e42538
Bump protocolbuffers/protobuf from 27.1 to 27.2 in the all group
dependabot[bot] Jul 1, 2024
dc1daba
Update main.yml
cpanato Jul 1, 2024
aa20cb4
Bump actions/upload-artifact from 4.3.3 to 4.3.4 in the all group
dependabot[bot] Jul 8, 2024
0fae76e
Add changelog for v1.5.0 (#1723)
haydentherapper Jul 9, 2024
f7148ae
CiProvider as a new OIDCIssuer type (#1679)
javanlacerda Jul 9, 2024
45e6709
Bump google.golang.org/grpc in the go_modules group (#1724)
dependabot[bot] Jul 9, 2024
06e9f3b
Surface the right `Name()` from our principal. (#1726)
mattmoor Jul 10, 2024
3deb374
Revert "CiProvider as a new OIDCIssuer type (#1679)" (#1727)
haydentherapper Jul 10, 2024
e5bf235
Changelog for v1.5.1 (#1728)
haydentherapper Jul 11, 2024
0d9e92e
CiProvider as a new OIDCIssuer type (#1729)
haydentherapper Jul 11, 2024
441e5ac
Bump the all group across 1 directory with 8 updates (#1719)
dependabot[bot] Jul 12, 2024
fd05cd1
Bump go.step.sm/crypto from 0.47.1 to 0.50.0
dependabot[bot] Jul 15, 2024
9cb4178
Bump actions/setup-go from 5.0.1 to 5.0.2 in the all group
dependabot[bot] Jul 15, 2024
f813da1
Bump github.com/coreos/go-oidc/v3 from 3.10.0 to 3.11.0
dependabot[bot] Jul 15, 2024
0ef7f4b
Move configuration to yaml format (#1720)
javanlacerda Jul 15, 2024
cd3dc30
Removes identity providers federation (#1736)
javanlacerda Jul 17, 2024
981b39c
Bump the all group across 1 directory with 11 updates
dependabot[bot] Jul 15, 2024
5e8059c
update builder
cpanato Jul 15, 2024
9f76119
sync go mod
cpanato Jul 15, 2024
2561297
add Hellō provider (#1739)
dickhardt Jul 19, 2024
f040693
Migrate github to ci provider flow (#1738)
javanlacerda Jul 23, 2024
478d048
Move gitlab to ci-provider (#1740)
javanlacerda Jul 25, 2024
03be8cc
Update IDP requirements (#1742)
haydentherapper Jul 29, 2024
cfc8a92
Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.20.0 to 2.21.0
dependabot[bot] Jul 29, 2024
0837380
Bump ossf/scorecard-action from 2.3.3 to 2.4.0 in the all group
dependabot[bot] Jul 29, 2024
fbccd05
Bump the all group across 1 directory with 4 updates
dependabot[bot] Jul 29, 2024
7ad677a
Added support for email_verified being a string or bool (#1744)
sabre1041 Jul 30, 2024
8fb5843
Bump chainguard.dev/sdk from 0.1.21 to 0.1.22 in the all group
dependabot[bot] Aug 5, 2024
f709bfe
Bump the all group with 3 updates
dependabot[bot] Aug 5, 2024
6bdb760
Bump go.step.sm/crypto from 0.50.0 to 0.51.1
dependabot[bot] Aug 5, 2024
84de04d
Move codefresh and buildkite to ci-provider identity (#1743)
javanlacerda Aug 6, 2024
37bcfca
Bump google.golang.org/api from 0.189.0 to 0.190.0 (#1753)
dependabot[bot] Aug 6, 2024
82ca98a
Bump the all group across 1 directory with 4 updates (#1754)
dependabot[bot] Aug 6, 2024
cabfe79
Add changelog for v1.6.0 (#1756)
haydentherapper Aug 6, 2024
7579b62
fixup
lance Aug 7, 2024
2944fc4
chore: remove hermetic builds
lance Sep 4, 2024
be6aac8
chore: downgrade golang dep
lance Sep 5, 2024
46a4674
konflux: remove unit test pipeline
lance Sep 5, 2024
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
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,34 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
groups:
all:
update-types:
- "patch"
- package-ecosystem: "gomod"
directory: "./hack/tools"
schedule:
interval: "weekly"
groups:
all:
update-types:
- "minor"
- "patch"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
all:
update-types:
- "minor"
- "patch"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
groups:
all:
update-types:
- "minor"
- "patch"
14 changes: 9 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ jobs:
language: [ 'go' ]
steps:
- name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Extract version of Go to use
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
# TODO: uncomment when we bump to go1.22 in go.mod
# - name: Extract version of Go to use
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GOVERSION }}
go-version: '1.22'
check-latest: true

- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
name: Install protobuf
with:
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,32 @@ jobs:
name: build
runs-on: ubuntu-latest

if: github.repository == 'sigstore/fulcio'

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0

- name: Extract version of Go to use
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
# TODO: uncomment when we bump to go1.22 in go.mod
# - name: Extract version of Go to use
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GOVERSION }}
go-version: '1.22'
check-latest: true

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

- uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6
- uses: ko-build/setup-ko@3aebd0597dc1e9d1a26bcfdb7cbeb19c131d3037 # v0.7

- name: Set up Cloud SDK
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c # v2.1.2
uses: google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa # v2.1.3
with:
workload_identity_provider: 'projects/498091336538/locations/global/workloadIdentityPools/githubactions/providers/sigstore-fulcio'
service_account: 'github-actions-fulcio@projectsigstore.iam.gserviceaccount.com'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency: cut-release
jobs:
cut-release:
name: Cut release
uses: sigstore/sigstore/.github/workflows/reusable-release.yml@main
uses: sigstore/community/.github/workflows/reusable-release.yml@main
permissions:
id-token: write
contents: read
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,31 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Extract version of Go to use
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# TODO: uncomment when we bump to go1.22 in go.mod
# - name: Extract version of Go to use
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GOVERSION }}
go-version: '1.22'
check-latest: true

- uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
name: Install protobuf
with:
version: '25.1'
version: '27.2'
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: make -C $GITHUB_WORKSPACE all

- name: Test
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload Coverage Report
uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # v4.1.1
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0

- name: Ensure no files were modified as a result of the build
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
4 changes: 2 additions & 2 deletions .github/workflows/protoc-dependabot-hack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:

dependabot_hack:
name: Ensure dependabot version checks
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:

# update the version in these places manually when Dependabot proposes a change to it here:
# 1. the version in main.yml used to install protoc
- uses: protocolbuffers/protobuf@v26.1
- uses: protocolbuffers/protobuf@v27.3
6 changes: 3 additions & 3 deletions .github/workflows/scorecard_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
id-token: write
steps:
- name: "Checkout code"
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -44,7 +44,7 @@ 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@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
with:
name: SARIF file
path: results.sarif
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/validate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
check-signature:
runs-on: ubuntu-latest
container:
image: gcr.io/projectsigstore/cosign:v2.2.3-dev@sha256:0d795fa145b03026b7bc2a35e33068cdb75e1c1f974e604c17408bf7bd174967
image: gcr.io/projectsigstore/cosign:v2.2.4-dev@sha256:13efd4c62710d75f07d12d8aad36a8657eeffd4f5f3a40bcbc207d8aafa67d41

steps:
- name: Check Signature
run: |
cosign verify ghcr.io/gythialy/golang-cross:v1.21.8-0@sha256:9c86fc6c6763cd5cd9a07f25083fc5a87f3525b5f8d7ff886822e2153f0c8405 \
cosign verify ghcr.io/gythialy/golang-cross:v1.22.5-0@sha256:5cf8fca7fe80392c8d1597fe89d291d49120507390f25507746f73d4b7f8a8f2 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity "https://github.com/gythialy/golang-cross/.github/workflows/release-golang-cross.yml@refs/tags/v1.21.8-0"
--certificate-identity "https://github.com/gythialy/golang-cross/.github/workflows/release-golang-cross.yml@refs/tags/v1.22.5-0"
env:
TUF_ROOT: /tmp

Expand All @@ -44,10 +44,10 @@ jobs:
needs:
- check-signature
container:
image: ghcr.io/gythialy/golang-cross:v1.21.8-0@sha256:9c86fc6c6763cd5cd9a07f25083fc5a87f3525b5f8d7ff886822e2153f0c8405
image: ghcr.io/gythialy/golang-cross:v1.22.5-0@sha256:5cf8fca7fe80392c8d1597fe89d291d49120507390f25507746f73d4b7f8a8f2

steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# Error: fatal: detected dubious ownership in repository at '/__w/fulcio/fulcio'
# To add an exception for this directory, call:
Expand Down
46 changes: 26 additions & 20 deletions .github/workflows/verify-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@ jobs:
name: k8s manifest check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Extract version of Go to use
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# TODO: uncomment when we bump to go1.22 in go.mod
# - name: Extract version of Go to use
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GOVERSION }}
check-latest: true

- name: Install kubeval
run: go install github.com/instrumenta/kubeval@v0.16.1

- run: kubeval config/*.yaml

verify-k8s-deployment:
Expand All @@ -46,12 +52,11 @@ jobs:

include:
- issuer: "OIDC Issuer"
issuer-config: |
"OIDCIssuers": {"https://kubernetes.default.svc": {"IssuerURL": "https://kubernetes.default.svc","ClientID": "sigstore","Type": "kubernetes"}}
issuer-config:
"oidc-issuers:\n https://kubernetes.default.svc:\n issuer-url: \"https://kubernetes.default.svc\"\n client-id: \"sigstore\"\n type: \"kubernetes\""
- issuer: "Meta Issuer"
issuer-config: |
"MetaIssuers": {"https://kubernetes.*.svc": {"ClientID": "sigstore","Type": "kubernetes"}}

issuer-config:
"meta-issuers:\n https://kubernetes.*.svc: \n client-id: \"sigstore\"\n type: \"kubernetes\""
env:
# https://github.com/google/go-containerregistry/pull/125 allows insecure registry for
# '*.local' hostnames. This works both for `ko` and our own tag-to-digest resolution logic,
Expand All @@ -63,14 +68,18 @@ jobs:
GIT_VERSION: test

steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Extract version of Go to use
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# TODO: uncomment when we bump to go1.22 in go.mod
# - name: Extract version of Go to use
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GOVERSION }}
go-version: '1.22'
check-latest: true

- uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6
- uses: ko-build/setup-ko@3aebd0597dc1e9d1a26bcfdb7cbeb19c131d3037 # v0.7

- name: Setup Cluster
uses: chainguard-dev/actions/setup-kind@f94883c3bd16936401291899070258f855b5d849 # main
Expand Down Expand Up @@ -114,10 +123,8 @@ jobs:
name: fulcio-config
namespace: fulcio-system
data:
config.json: |-
{
${{ matrix.issuer-config }}
}
config.yaml: |-
${{ matrix.issuer-config }}
server.yaml: |-
host: 0.0.0.0
port: 5555
Expand All @@ -129,7 +136,6 @@ jobs:
ct-log-url: ""
log_type: prod
EOF

# Create secret needed to use fileca
cat <<EOF > config/fulcio-secret.yaml
apiVersion: v1
Expand Down
62 changes: 41 additions & 21 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@

name: Verify

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:

permissions:
contents: read
Expand All @@ -25,14 +29,20 @@ jobs:
name: license boilerplate check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Extract version of Go to use
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# TODO: uncomment when we bump to go1.22 in go.mod
# - name: Extract version of Go to use
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GOVERSION }}
go-version: '1.22'
check-latest: true

- name: Install addlicense
run: go install github.com/google/addlicense@v1.0.0

- name: Check license headers
run: |
set -e
Expand All @@ -43,32 +53,42 @@ jobs:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: deps
run: sudo apt-get update && sudo apt-get install -yq libpcsclite-dev
- name: Extract version of Go to use
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0

# TODO: uncomment when we bump to go1.22 in go.mod
# - name: Extract version of Go to use
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GOVERSION }}
go-version: '1.22'
check-latest: true

- name: golangci-lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
timeout-minutes: 5
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
timeout-minutes: 10
with:
version: v1.55
version: v1.59

oidc-config:
name: oidc-config
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Extract version of Go to use
run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# TODO: uncomment when we bump to go1.22 in go.mod
# - name: Extract version of Go to use
# run: echo "GOVERSION=$(cat Dockerfile|grep golang | awk ' { print $2 } ' | cut -d '@' -f 1 | cut -d ':' -f 2 | uniq)" >> $GITHUB_ENV

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GOVERSION }}
go-version: '1.22'
check-latest: true

- name: check-config
run: |
set -e
go run federation/main.go
git diff --exit-code
go test -timeout 30s -run ^TestLoadFulcioConfig$ github.com/sigstore/fulcio/pkg/config
Loading
Loading