add bearer_token_format and idp_access_token_allowed_audiences #2319
Workflow file for this run
This file contains 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
name: Test | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 | |
with: | |
go-version: 1.23.x | |
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 | |
with: | |
python-version: "3.x" | |
- name: install kustomize | |
run: make kustomize | |
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd | |
with: | |
extra_args: --show-diff-on-failure --from-ref ${{ | |
github.event.pull_request.base.sha }} --to-ref ${{ | |
github.event.pull_request.head.sha }} | |
env: | |
SKIP: go-mod-tidy,lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 | |
with: | |
go-version: 1.23.x | |
- name: set env vars | |
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
fetch-depth: 0 | |
- name: cache go binaries | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 | |
id: cache-go-bin | |
with: | |
path: ~/go/bin | |
key: ${{ runner.os }}-${{ hashFiles('**/go.mod') }} | |
restore-keys: ${{ runner.os }}-go-bin | |
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: test | |
if: runner.os == 'Linux' | |
run: make test | |
env: | |
# Remove this override when 1.31.1 is available for envtest | |
ENVTEST_K8S_VERSION: 1.31.0 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 | |
with: | |
go-version: 1.23.x | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: build | |
run: | | |
make build |