From a96aa7758d05390bf0995c9f5fa864734c50707c Mon Sep 17 00:00:00 2001 From: Ignacio Rodriguez Paez Date: Thu, 26 Nov 2026 15:06:43 +0000 Subject: [PATCH 1/2] ci: authenticate Docker Hub with OIDC (SEC-4519) Replace static Docker credentials with the configured OIDC connection while preserving workflow triggers and publishing behavior. Linear: https://linear.app/sourcegraph/issue/SEC-4519/configure-oidc-in-github-actions-that-log-in-to-docker Amp-Thread-ID: https://ampcode.com/threads/T-01a2180e-b11b-76a6-b0cd-520034d574a0 Co-authored-by: Amp --- .github/workflows/scip-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scip-release.yml b/.github/workflows/scip-release.yml index fd352265b..14f2ba7b4 100644 --- a/.github/workflows/scip-release.yml +++ b/.github/workflows/scip-release.yml @@ -24,8 +24,9 @@ jobs: - name: Login to DockerHub uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: sourcegraph + env: + DOCKERHUB_OIDC_CONNECTIONID: 7937e496-9edf-4170-9bc8-9ff38a3954fe - name: Build and push id: docker_build_autoindex uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 From 4b0b2da0f8e882d373c0b1934eb0b4b88e8cba47 Mon Sep 17 00:00:00 2001 From: Ignacio Rodriguez Paez Date: Fri, 27 Nov 2026 10:14:56 +0000 Subject: [PATCH 2/2] ci: scope Docker OIDC credentials to the published image Preserve default credentials for public Docker Hub base-image pulls. SEC-4519 Amp-Thread-ID: https://ampcode.com/threads/T-01a2180e-b11b-76a6-b0cd-520034d574a0 Co-authored-by: Amp --- .github/workflows/scip-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scip-release.yml b/.github/workflows/scip-release.yml index 14f2ba7b4..3b2d04137 100644 --- a/.github/workflows/scip-release.yml +++ b/.github/workflows/scip-release.yml @@ -25,6 +25,7 @@ jobs: uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: username: sourcegraph + scope: sourcegraph/scip-python env: DOCKERHUB_OIDC_CONNECTIONID: 7937e496-9edf-4170-9bc8-9ff38a3954fe - name: Build and push