Comments (6)
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 thatAPI_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
referenced a personal access token and that the standardGITHUB_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.
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.
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.
@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.
@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.
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 standardGITHUB_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)
- No space before ']'
- Doesn't post to root folder. HOT 1
- Setting up to use default Github env. variables HOT 3
- Coping old file HOT 1
- Authorization fails when 2FA is enabled
- Authentication failed with 2FA enabled organisation
- Push LFS file to destination HOT 1
- Fails to copy to a private repo. HOT 1
- When using multiple files in a matrix, the first copy will work... The next one will not because the source changed HOT 1
- fatal: unable to access '...': URL using bad/illegal format or missing URL
- Update Version Number of Destination Repo
- Existing file overwrite
- workflow not using ssh
- The `save-state` command is deprecated and will be disabled soon.
- commit_message to be actual commit message HOT 1
- Source folder in root to destination folder in root issue
- Not updated for a long time so i created a fork
- error: RPC failed; HTTP 408 curl 18 HTTP/2 stream 7 was reset HOT 1
- Includes multiple files in source_file HOT 2
- Urgent: Causing conflict with workflows running simultaneously HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copy_file_to_another_repo_action.