Personal access token을 발행하여 Resource not accessible by integration 오류 해결
3574 단어 GitHubActionstokenGitHub
전제
Qiita 기사
'10분만에 자신의 GitHub 프로필을 멋지게 만들기'
이 Qiita 기사에 따라 Error : Resource not accessible by integration이라는 오류에 빠지면 참조하십시오.
이 오류는 "통합에서는 리소스에 액세스할 수 없습니다."라고 직역으로 말합니다.
해결에 필요한 것
위의 Qiita 기사내에서 .github/workflows/profile-summary-cards.yml 파일을 작성해 갑니다만, 파일내는 통상은 이렇게 기술합니다.
github/workflows/profile-summray-cards.yml (수정 전)
name: GitHub-Profile-Summary-Cards
on:
schedule: # execute every 24 hours
- cron: '* */24 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: generate
steps:
- uses: actions/checkout@v2
- uses: vn7n24fzkq/github-profile-summary-cards@release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
USERNAME: ${{ github.repository_owner }}
그러나 이것이라면 잘하지 못할 수 있으며 제목대로 오류가 발생합니다.
그 때문에, 파일내의 재기록이 필요합니다만,
먼저 Personal access token 발급이 필요합니다.
Personal access token 발급
1. 자신의 GitHub의 맨 오른쪽 상단에 있는 아이콘을 눌러 메뉴에서 Settings를 누릅니다.

2. 화면이 전환되면 Developer settings를 누르십시오.

3.Personal access tokens를 누르고 Generate new token에 들어간다.

4. 번호가 발행되므로 복사하여 Readme의 리포지토리로 이동.
리포지토리에서 Settings를 누릅니다.

5. 메뉴에서 Secrets를 누르고 New secret로 파일을 만듭니다.

6. 파일명을 설정하고 Value 란에 위에서 복사한 번호를 붙여 넣는다.

7. .github/workflows/profile-summray-cards.yml 파일의 secrets.GITHUB_TOKEN을 secrets.PERSONAL_ACCESS_TOKEN에 다시 쓰고 저장합니다.
github/workflows/profile-summray-cards.yml (수정 후)
name: GitHub-Profile-Summary-Cards
on:
schedule: # execute every 24 hours
- cron: "* */24 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: generate
steps:
- uses: actions/checkout@v2
- uses: vn7n24fzkq/github-profile-summary-cards@release
env: (↓ここを書き換える)
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
USERNAME: ${{ github.repository_owner }}
커밋하고 파일을 업데이트하면 Resource not accessible by integration 오류가 해결됩니다.
다시 '10분만에 자신의 GitHub 프로필을 멋지게 만들기'의 설명에 따라 작업을 완료할 수 있습니다.
그래도 오류가 해결되지 않으면 작성한 파일 이름이나 설명 실수를 의심해보십시오.
이상입니다.
Reference
이 문제에 관하여(Personal access token을 발행하여 Resource not accessible by integration 오류 해결), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/athlaliel/items/cfef41949f62638c13da텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)