Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

"Resource not accessible by integration" #103

Open
gyorokpeter opened this issue Oct 19, 2020 · 6 comments
Open

"Resource not accessible by integration" #103

gyorokpeter opened this issue Oct 19, 2020 · 6 comments

Comments

@gyorokpeter
Copy link

I have tried to add this action to my build but I get this error. What exactly does it mean and how to fix it?

The config can be seen here:
https://github.com/finos/kdb-studio/pull/15/files

@lgtmbro
Copy link

lgtmbro commented Nov 4, 2020

have you tried swopping out secrets.GITHUB_TOKEN with your PAT? worked for me 😸

@gyorokpeter
Copy link
Author

@howzitcal What does PAT stand for?

@lgtmbro
Copy link

lgtmbro commented Nov 5, 2020

@gyorokpeter
Copy link
Author

"Warning: Treat your tokens like passwords and keep them secret. When working with the API, use tokens as environment variables instead of hardcoding them into your programs."
But how do I avoid this hardcoding in github actions? Putting them into main.yml would reveal it to the world.

@lgtmbro
Copy link

lgtmbro commented Nov 6, 2020

store it as a secret in your repo give the secret a name like PAT then in the github action call it by typing ${{secrets.PAT}}

@gyorokpeter
Copy link
Author

In the meantime I have also been looking elsewhere for similar problems.
Turns out it was only because I was trying to use the action from a PR which doesn't have write permissions, but it is not obvious from the error message. So adding a condition " if: github.event_name == 'push'" solved it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants