Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GITHUB_TOKEN: parameter not set in entrypoint.sh #2

Closed
adriaandotcom opened this issue Jan 16, 2020 · 4 comments
Closed

GITHUB_TOKEN: parameter not set in entrypoint.sh #2

adriaandotcom opened this issue Jan 16, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@adriaandotcom
Copy link

It's missing the GITHUB_TOKEN variable. According to the GitHub Docs this is automatically set in a repository. But somehow I get this error:

index.js 43ms
file2.js 8ms
file3.js 5ms
/entrypoint.sh: 7: /entrypoint.sh: GITHUB_TOKEN: parameter not set
Commiting and pushing changes...
##[error]Docker run failed with exit code 2

Screenshot

Am I missing something?

@adriaandotcom adriaandotcom added the bug Something isn't working label Jan 16, 2020
@creyD
Copy link
Owner

creyD commented Jan 16, 2020

Possibly by not providing it manually, GitHub takes my TOKEN and tries to push to your repository. Please try to provide the TOKEN manually by adding it to your workflow file like this (docs):

env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

@creyD
Copy link
Owner

creyD commented Jan 16, 2020

Okay, now I got it: The docs you sent are the parameters you can add in your action.yml. But for security reasons I can't access them from my repository, so you have to provide them via your file.

@creyD
Copy link
Owner

creyD commented Jan 16, 2020

In 25777ab I added a simple example config file!

@adriaandotcom
Copy link
Author

You example works great! Thanks

creyD pushed a commit that referenced this issue Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants