From 1c3ee1b07bf97d9df0cc0931e4ce1bc29ca06b7a Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 12 Nov 2026 10:20:26 +0000 Subject: [PATCH] .github: pass integration tests only the secrets they read Call the template with $/, the same-commit reference zizmor asks for. --- .github/workflows/integration-test-template.yml | 9 +++++++++ .github/workflows/test-integration.yaml | 16 ++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-test-template.yml b/.github/workflows/integration-test-template.yml index 990fc3b5c..bd26c1bba 100644 --- a/.github/workflows/integration-test-template.yml +++ b/.github/workflows/integration-test-template.yml @@ -13,6 +13,15 @@ on: database_name: required: true type: string + secrets: + TS_OAUTH_CLIENT_ID: + required: false + TS_OAUTH_SECRET: + required: false + DOCKERHUB_CI_USERNAME: + required: false + DOCKERHUB_CI_TOKEN: + required: false jobs: test: diff --git a/.github/workflows/test-integration.yaml b/.github/workflows/test-integration.yaml index 15faea4f2..349dddd96 100644 --- a/.github/workflows/test-integration.yaml +++ b/.github/workflows/test-integration.yaml @@ -396,8 +396,12 @@ jobs: - TestTS2021WebSocketGET - TestTS2021WASMClientUnderNode - TestTailscaleRustAxum - uses: ./.github/workflows/integration-test-template.yml - secrets: inherit + uses: $/.github/workflows/integration-test-template.yml + secrets: + TS_OAUTH_CLIENT_ID: ${{ secrets.TS_OAUTH_CLIENT_ID }} + TS_OAUTH_SECRET: ${{ secrets.TS_OAUTH_SECRET }} + DOCKERHUB_CI_USERNAME: ${{ secrets.DOCKERHUB_CI_USERNAME }} + DOCKERHUB_CI_TOKEN: ${{ secrets.DOCKERHUB_CI_TOKEN }} with: test: ${{ matrix.test }} postgres_flag: "--postgres=0" @@ -414,8 +418,12 @@ jobs: - TestEphemeral2006DeletedTooQuickly - TestPingAllByIPManyUpDown - TestSubnetRouterMultiNetwork - uses: ./.github/workflows/integration-test-template.yml - secrets: inherit + uses: $/.github/workflows/integration-test-template.yml + secrets: + TS_OAUTH_CLIENT_ID: ${{ secrets.TS_OAUTH_CLIENT_ID }} + TS_OAUTH_SECRET: ${{ secrets.TS_OAUTH_SECRET }} + DOCKERHUB_CI_USERNAME: ${{ secrets.DOCKERHUB_CI_USERNAME }} + DOCKERHUB_CI_TOKEN: ${{ secrets.DOCKERHUB_CI_TOKEN }} with: test: ${{ matrix.test }} postgres_flag: "--postgres=1"