Giter Club home page Giter Club logo

Comments (7)

adisakshya avatar adisakshya commented on July 1, 2024 2

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!

from jamesgeorge007.

vinzlercodes avatar vinzlercodes commented on July 1, 2024 1

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

from jamesgeorge007.

adisakshya avatar adisakshya commented on July 1, 2024

@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.

from jamesgeorge007.

dansf avatar dansf commented on July 1, 2024

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 :(

from jamesgeorge007.

ignaciokairuz avatar ignaciokairuz commented on July 1, 2024

@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 }}??

from jamesgeorge007.

arthurlli avatar arthurlli commented on July 1, 2024

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. 😄

from jamesgeorge007.

FahimFBA avatar FahimFBA commented on July 1, 2024

@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

from jamesgeorge007.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.