Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Permission Issue with GITHUB_TOKEN #26

Description

@yl2049

Hi, I found that there might be a permission problem with secrets.GITHUB_TOKEN at line 24 in grading.yml. I followed the instructions carefully but could not let github-actions generate a new Issue.

The error I got was

Run githubtraining/looking-glass-action@v1.0.0
  with:
    github-token: ***
    feedback: {"reports":[{"filename":"","isCorrect":true,"display_type":"issues","level":"info","msg":"Great job!","error":{"expected":"","got":""}}]}
Error: HttpError: Resource not accessible by integration

I replaced secrets.GITHUB_TOKEN with secrets.EXERCISE_PAT and it worked. I tried another way by changing the Workflow permission in Settings-Actions-General of this repository to read and write permissions, and secrets.GITHUB_TOKEN also worked this time.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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