Skip to content

Commit fea996d

Browse files
committed
[IDE-1660] fix login hopefully
1 parent 63cbf43 commit fea996d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/actions/publish/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ inputs:
1919
tag:
2020
description: 'Tag to upload artifacts to.'
2121
required: true
22+
ghcr_token:
23+
description: 'Token to log into ghcr.io'
24+
required: true
25+
default: "${{ secrets.GITHUB_TOKEN }}"
2226

2327
outputs:
2428
hashes:
@@ -41,7 +45,7 @@ runs:
4145
shell: bash
4246
run: |
4347
docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_TOKEN
44-
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
48+
echo ${{ inputs.ghcr_token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
4549
CONTAINER_ID="$(
4650
docker run --detach \
4751
--volume "$PWD:$PWD" \

.github/workflows/manual-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
permissions:
2424
id-token: write # Needed to obtain Docker tokens
2525
contents: write # Needed to upload release artifacts
26+
packages: read # Needed to load goreleaser-cross image
2627
runs-on: ubuntu-latest
2728
outputs:
2829
hashes: ${{ steps.publish.outputs.hashes }}

.github/workflows/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
permissions:
2424
id-token: write # Needed to obtain Docker tokens
2525
contents: write # Needed to upload release artifacts
26+
packages: read # Needed to load goreleaser-cross image
2627
needs: [ release-please ]
2728
if: always() && (needs.release-please.outputs.release_created == 'true' || github.event_name == 'pull_request')
2829
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)