-
Notifications
You must be signed in to change notification settings - Fork 766
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 Action terraform plan
execution gets 403 Resource not accessible by integration
#1163
Comments
I worked around this issue by creating a Personal Access Token and setting the environment variable for GITHUB_TOKEN to the name of my secret:
|
@morgan-monzingo what are the scopes you're requesting for the token? By default, the Actions-generated token only comes with some permissions to the repo it runs on. |
I've bumped into the same issue. The debug revealed that the problem is deeper than any resource.
Practically the
And I'm sure not using any user related resource. Just using a simple data source like
It's on
|
Actually, adding the
I think it's worth mentioning in the documentation. |
@ZsoltPath do you have any interest in opening up a PR to add that fact to the docs? |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
1.2.1
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I want to run a
terraform plan
on a configuration that includes the github_action_secret in a Github Action on a Pull request.The plan will show if the secret is being updated, if it is not being updated then it will show no changes.
Actual Behavior
When the
terraform plan
executes I get a 403 "Resource not accessible by integration".Important Factoids
I do NOT have a Github app setup to run this. I am running the Github Action using the provided GITHUB_TOKEN to authenticate with the provider. This secret is a part of the repo running the Github Action.
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: