Git Product home page Git Product logo

Comments (6)

xelzi avatar xelzi commented on August 16, 2024 2

It would be nice to add some sort of note in the docs about the token that needs to be included in the workflow.
As somebody new to integrating with actions, I spent a good amount of time realizing that API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} referenced a personal access token and that the standard GITHUB_TOKEN would not have sufficient permissions.

@xelzi I'm also new to actions and ran into the same problem as you. But need help with the next step. After setting up a personal access token, what do I need to do so that it is recognized by the ${{ secrets.API_TOKEN_GITHUB }} reference? thanks in advance for the help.

If the repositories you are copying files between are under the same organization you can add an org secret: https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-an-organization

Otherwise, you need to make sure both repos have access to the secret a la: https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-an-environment

Hope that helps!

from copy_file_to_another_repo_action.

xelzi avatar xelzi commented on August 16, 2024 1

It would be nice to add some sort of note in the docs about the token that needs to be included in the workflow.

As somebody new to integrating with actions, I spent a good amount of time realizing that API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} referenced a personal access token and that the standard GITHUB_TOKEN would not have sufficient permissions.

from copy_file_to_another_repo_action.

dmnemec avatar dmnemec commented on August 16, 2024 1

Sounds like a good thing to mention. I need to update docs with the commit message stuff, too, so I'll grab this then.

from copy_file_to_another_repo_action.

drakos74 avatar drakos74 commented on August 16, 2024 1

@DavidOry , if i understand your issue correctly , you need to reference your own token with something like this https://bloggie.io/@_junrong/using-environment-variables-secrets-in-github-actions#secrets . Hope that helps.

from copy_file_to_another_repo_action.

brenoalvs avatar brenoalvs commented on August 16, 2024

@dmnemec I'm receiving this error in one of my repositories with a regular workflow.

--edit--

Maybe a false positive, I've updated my personal access token and everything works fine now.

from copy_file_to_another_repo_action.

DavidOry avatar DavidOry commented on August 16, 2024

It would be nice to add some sort of note in the docs about the token that needs to be included in the workflow.

As somebody new to integrating with actions, I spent a good amount of time realizing that API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} referenced a personal access token and that the standard GITHUB_TOKEN would not have sufficient permissions.

@xelzi I'm also new to actions and ran into the same problem as you. But need help with the next step. After setting up a personal access token, what do I need to do so that it is recognized by the ${{ secrets.API_TOKEN_GITHUB }} reference? thanks in advance for the help.

from copy_file_to_another_repo_action.

Related Issues (20)

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.