Skip to content

«Resource not accessible by integration» on gists #12

@yermulnik

Description

@yermulnik

gist cards fail to generate 😢

GH Action:

name: Update github-readme-stats cards

on:
  schedule:
    - cron: "0 9 * * *"
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: write

    steps:
      - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

      # Generate gist cards
      - name: Generate gist card
        uses: readme-tools/github-readme-stats-action@b4d2ef3b8051484b318d455163153b23a2b35fa2 # v1.1.0
        with:
          card: gist
          options: username=${{ github.repository_owner }}&id=<PUBLIC_GIST_ID>&show_owner=false
          path: github-readme-stats-action/gist_<PUBLIC_GIST_ID>.svg
          token: ${{ secrets.GITHUB_TOKEN }}

      # Commit and push changes
      - name: Commit cards
        run: |
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add github-readme-stats-action/*.svg
          git commit -m "Update github-readme-stats-action cards" || exit 0
          git push

Result:
Image

Other types of cards are generated without any issue.
Is this a correct place or should I report via https://github.com/readme-tools/github-readme-stats?

PS: the username=${{ github.repository_owner }} is provided to action as it throws this annotation w/o it

username not provided; defaulting to repository owner.
Image

The result renders fail no matter whether username=${{ github.repository_owner }} is added or removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions