I want to use Installation Access Token instead of Personal Access Token on GitHub Actions, but doesn’t work.
Example code
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_PRIVATE_KEY }}
- name: Log into GitHub Container Registry
run: echo "${{ steps.generate_token.outputs.token }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
My GitHub App (GH_APP_ID) has “Read & Write access” enabled in “Packages”.
Error
Run echo "***" | docker login https://ghcr.io -u sue445 --password-stdin
echo "***" | docker login https://ghcr.io -u sue445 --password-stdin
shell: /bin/bash -e {0}
env:
IMAGE_NAME: awscli-all
Error response from daemon: Get https://ghcr.io/v2/: denied
##[error]Process completed with exit code 1.
Is there a way to use Installation Access Token?