Skip to content

Commit 55a193a

Browse files
anth-volkclaude
andcommitted
Fix Docker login: use GITHUB_TOKEN instead of expired PAT
Replace the old docker/login-action (pinned to ancient SHA) using POLICYENGINE_DOCKER PAT with docker/login-action@v3 using the automatic GITHUB_TOKEN. Add packages:write permission to both PR and push Docker jobs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c378b45 commit 55a193a

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,18 @@ jobs:
3535
test_container_builds:
3636
name: Docker
3737
runs-on: ubuntu-latest
38+
permissions:
39+
contents: read
40+
packages: write
3841
steps:
3942
- name: Checkout repo
4043
uses: actions/checkout@v4
4144
- name: Log in to the Container registry
42-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
45+
uses: docker/login-action@v3
4346
with:
4447
registry: ghcr.io
4548
username: ${{ github.actor }}
46-
password: ${{ secrets.POLICYENGINE_DOCKER }}
49+
password: ${{ secrets.GITHUB_TOKEN }}
4750
- name: Build container
4851
run: docker build -t ghcr.io/policyengine/policyengine docker
4952
test_env_vars:

.github/workflows/push.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,18 @@ jobs:
111111
name: Docker
112112
runs-on: ubuntu-latest
113113
needs: ensure-model-version-aligns-with-sim-api
114+
permissions:
115+
contents: read
116+
packages: write
114117
steps:
115118
- name: Checkout repo
116119
uses: actions/checkout@v4
117120
- name: Log in to the Container registry
118-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
121+
uses: docker/login-action@v3
119122
with:
120123
registry: ghcr.io
121124
username: ${{ github.actor }}
122-
password: ${{ secrets.POLICYENGINE_DOCKER }}
125+
password: ${{ secrets.GITHUB_TOKEN }}
123126
- name: Build container
124127
run: docker build -t ghcr.io/policyengine/policyengine docker
125128
- name: Push container
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Replace push-based country package bump with cron-based workflow that polls PyPI every 30 minutes.
1+
Replace push-based country package bump with cron-based workflow that polls PyPI every 30 minutes. Fix Docker login to use GITHUB_TOKEN instead of expired PAT.

0 commit comments

Comments
 (0)