yoshi389111 / github-profile-3d-contrib

This GitHub Action creates a GitHub contribution calendar on a 3D profile image.
MIT License
1.05k stars 173 forks source link

Unsuccessful run #51

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi!

First of all, I don't know if it is indeed a bug, I believe it is indeed a mistake on my part, but I don't know which one (lol). I'll put the error that occurred here, I hope you can help me 😅. See below:

remote: Permission to mthsBelloni/mthsBelloni.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/mthsBelloni/mthsBelloni/': The requested URL returned error: 403
Error: Process completed with exit code 128.

And here is the code of the "profile-3d.yml" file:

name: GitHub-Profile-3D-Contrib

on:
  schedule: # 15:00 BRT == 18:00 UTC
    - cron: "0 18 * * *"
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    name: generate-github-profile-3d-contrib
    steps:
      - uses: actions/checkout@v3
      - uses: yoshi389111/github-profile-3d-contrib@0.7.1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          USERNAME: ${{ github.repository_owner }}
      - name: Commit & Push
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com
          git add -A .
          git commit -m "generated"
          git push
yoshi389111 commented 1 year ago

Hello mthsBelloni.

It looks like your token doesn't have write permissions.

Can you please try again after adding permissions to the token from the repository settings screen?

(1) Select the settings menu of the repository

image

(2) Click Actions then General

image

(3) Set Workflow permissions at the bottom to Read and write permissions

image

ghost commented 1 year ago

Dude, it worked!

Thanks for the help and the project, thanks to you, my profile looks good, lol! 😁🤍