game-ci / game-ci/documentation

Missing documentation requirement: GITHUB_TOKEN write permission

Open
#401 3 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
MDX
Stars
243
Forks
130
Avg merge
15d 42m
Merged PRs (30d)
1

Description

**Bug description**

The documentation is missing a required step: the Github Token needs write permission if it's used for test outputs.

**Steps to reproduce**

Create a new repository on Github.
Populate it with a new unity project.
Add any test to the project
Use the Simple Example main.yml
Push to GH
The action should fail during testing with the following message:
"Resource not available by integration"

**Expected behavior**

The build should complete

**Additional details**

The solution as per [stack overflow](https://stackoverflow.com/questions/70435286/resource-not-accessible-by-integration-on-github-post-repos-owner-repo-ac) is to give write permission to your repository's GITHUB_TOKEN.
Older repositories had that setting by default, but it changed on Feb 2023 [(github changelog)](https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/)

![image](https://github.com/game-ci/documentation/assets/8721325/63f67925-1816-4ba8-92e7-e94e63f85d58)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.