• 카테고리

    질문 & 답변
  • 세부 분야

    웹 개발

  • 해결 여부

    미해결

push 작업 중 아래와 같은 에러가 발생합니다.

23.02.14 23:23 작성 23.02.15 01:33 수정 조회수 435

0

스크린샷 2023-02-14 오후 11.57.14.png스크린샷 2023-02-14 오후 11.23.23.png
크롤링 데이터 파일 생성 후 나에게 push하기 강의 실습 중 위의 에러가 발생했습니다.

아래는 제 main.yml 파일입니다.

name: helloGithubAction

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        # 개인 토큰을 사용할 것인지 말 것인지
        persist-credentials: false
    - name: 1. pip 업그래이드
      run: python -m pip install --upgrade pip
    - name: 2. 환경 설정
      run: pip install -r requirements.txt
    - name: 3. 파이썬 실행
      run: python test_crawl_2.py
    - name: Commit files
      run: |
        git config --local user.email "hajuny129@gmail.com"
        git config --local user.name "HaJunYoo"
        git add .
        git commit -m "Run crawler and update current data"

    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        branch: ${{ github.ref }}

답변 1

답변을 작성해보세요.

1

Jay님의 프로필

Jay

2023.07.04

You have to configure your repository - Settings -> Action -> General -> Workflow permissions and choose read and write permissions

https://stackoverflow.com/questions/73687176/permission-denied-to-github-actionsbot-the-requested-url-returned-error-403