Skip to content

Commit 56159a1

Browse files
nachorpaezampagent
andauthored
ci: authenticate Docker Hub with OIDC (SEC-4519) (#253)
* 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 <amp@ampcode.com> * 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 <amp@ampcode.com> --------- Co-authored-by: Amp <amp@ampcode.com>
1 parent 51dd05f commit 56159a1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/scip-release.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ jobs:
2424
- name: Login to DockerHub
2525
uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
2626
with:
27-
username: ${{ secrets.DOCKER_USERNAME }}
28-
password: ${{ secrets.DOCKER_PASSWORD }}
27+
username: sourcegraph
28+
scope: sourcegraph/scip-python
29+
env:
30+
DOCKERHUB_OIDC_CONNECTIONID: 7937e496-9edf-4170-9bc8-9ff38a3954fe
2931
- name: Build and push
3032
id: docker_build_autoindex
3133
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0

0 commit comments

Comments
 (0)