강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của dannyryu
dannyryu

câu hỏi đã được viết

Tạo trang web thu thập thông tin bằng Github Action

Tạo một tệp dữ liệu thu thập dữ liệu và đẩy nó cho tôi

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

Viết

·

647

·

Đã chỉnh sửa

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 }}
웹-크롤링웹-크롤링githubci/cdcicd

Câu trả lời 1

1

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

Hình ảnh hồ sơ của dannyryu
dannyryu

câu hỏi đã được viết

Đặt câu hỏi