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

Permission Issue with GITHUB_TOKEN #26

Open
yl2049 opened this issue May 30, 2023 · 1 comment
Open

Permission Issue with GITHUB_TOKEN #26

yl2049 opened this issue May 30, 2023 · 1 comment

Comments

@yl2049
Copy link

yl2049 commented May 30, 2023

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.

@sovetski
Copy link

sovetski commented Jun 4, 2023

Same here, but it is not worked for me to replace "GITHUB_TOKEN"


Edit: I just fixed it by changing my new organization settings to this:
image

It should be added as important information on this repository README, I just spent more than 2 hours to find this stupid problem!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants