jamesgeorge007 / jamesgeorge007

🙌

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

this workflow is not working in my repository

Lucifer-00007 opened this issue · comments

My repo link:- https://github.com/Lucifer-00007/Lucifer-00007/blob/main/.github/workflows/update-readme.yml

Should i replace :- " GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} " ??

My repo link:- https://github.com/Lucifer-00007/Lucifer-00007/blob/main/.github/workflows/update-readme.yml

Should i replace :- " GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} " ??

Same here

@Lucifer-00007 @vinzlercodes
You need to generate a github-access-token from your GitHub account settings section with the required scope and then add it as a secret to your repository. I just used it for my repository.

I believe the right place for this issue was the action's repository.

This workflow is not working for me too, i do not know why.
Link of my repo: https://github.com/dansf
I belive the problem is on the Actions sections witch says failed on the pull request, but i do not know how to fix it :(

@Lucifer-00007 @vinzlercodes
You need to generate a github-access-token from your GitHub account settings section with the required scope and then add it as a secret to your repository. I just used it for my repository.

I believe the right place for this issue was the action's repository.

With required scope you mean clicking only on the "workflow" box right? And adding it as a secret to my repository is done just by filling the boxes on "New Repository Secret" with said token and a custom name or do I also need to change the yml file by , instead of ${{ secrets.GITHUB_TOKEN }} using ${{ secrets.MY_OWN_SECRET }}??

With required scope you mean clicking only on the "workflow" box right?

Scopes let you specify exactly what type of access you need. Scopes limit the access for OAuth tokens.

The workflow scope grants the ability to add and update GitHub Actions workflow files, which we don't need. You have to select the following scopes for your access token for this to work,
image

PS: You can read more about scopes here in docs.

And adding it as a secret to my repository is done just by filling the boxes on "New Repository Secret" with said token and a custom name

Yes, when you've generated an access token with the correct required scope then as the next step you have to create a secret for your repository with the generated token, you can give the secret any name of your choice.

do I also need to change the yml file by, instead of ${{ secrets.GITHUB_TOKEN }} using ${{ secrets.MY_OWN_SECRET }}

Let's say you chose the name MY_SECRET_GITHUB_TOKEN for your secret then in the github-action yml file you must use it as ${{ secrets.MY_SECRET_GITHUB_TOKEN }}

Hope it helps!

With required scope you mean clicking only on the "workflow" box right?

Scopes let you specify exactly what type of access you need. Scopes limit the access for OAuth tokens.

The workflow scope grants the ability to add and update GitHub Actions workflow files, which we don't need. You have to select the following scopes for your access token for this to work,
image

PS: You can read more about scopes here in docs.

And adding it as a secret to my repository is done just by filling the boxes on "New Repository Secret" with said token and a custom name

Yes, when you've generated an access token with the correct required scope then as the next step you have to create a secret for your repository with the generated token, you can give the secret any name of your choice.

do I also need to change the yml file by, instead of ${{ secrets.GITHUB_TOKEN }} using ${{ secrets.MY_OWN_SECRET }}

Let's say you chose the name MY_SECRET_GITHUB_TOKEN for your secret then in the github-action yml file you must use it as ${{ secrets.MY_SECRET_GITHUB_TOKEN }}

Hope it helps!

It helps! Thanks a lot! I think we can click "actions" tag, select "Update README", and click "Run workflow" after following your suggestion, so that we can see updates immediately. 😄

@adisakshya, I did everything you instructed. Still, it is not working in my case. Can you please help me out in this regard?
My repo link: https://github.com/FahimFBA/FahimFBA