Skip to content

Commit

Permalink
compatible(build_charm.yaml): Add GitHub auth to avoid ccc rate limit (
Browse files Browse the repository at this point in the history
…#202)

Avoid charmcraftcache failing due to GitHub API rate limit by
authenticating to GitHub
  • Loading branch information
carlcsaposs-canonical authored Jun 25, 2024
1 parent cd382c2 commit eb5c6fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ jobs:
id: pack
working-directory: ${{ inputs.path-to-charm-directory }}
run: sg lxd -c "${{ steps.pack-command.outputs.command }}"
env:
# Used by charmcraftcache (to avoid GitHub API rate limit)
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload charmcraft logs
if: ${{ failure() && steps.pack.outcome == 'failure' }}
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit eb5c6fc

Please sign in to comment.