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

ActionsEnvironmentSecret ignores github:owner config #246

Open
anthonator opened this issue Sep 28, 2022 · 3 comments
Open

ActionsEnvironmentSecret ignores github:owner config #246

anthonator opened this issue Sep 28, 2022 · 3 comments
Labels
kind/bug Some behavior is incorrect or out of spec

Comments

@anthonator
Copy link

What happened?

When trying to replace an ActionsEnvironmentSecret we get the following error.

Diagnostics:
  github:index:ActionsEnvironmentSecret (lokiAWSSecretAccessKey):
    error: deleting urn:pulumi:loki-production::loki::github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret::lokiAWSSecretAccessKey: GET https://api.github.com/repos//<repo>: 404 Not Found []
 
  pulumi:pulumi:Stack (loki-loki-production):
    error: update failed

Steps to reproduce

Attempt to use ActionsEnvironmentSecret.

return new github.ActionsEnvironmentSecret(
  "lokiAWSSecretAccessKey",
  {
    environment,
    encryptedValue,
    repository,
    secretName,
  },
  {
    deleteBeforeReplace: true,
  }
);

Expected Behavior

The ActionsEnvironmentSecret is replaced.

Actual Behavior

We get the error provided as part of the answer to the "What happened?" question.

Output of pulumi about

CLI          
Version      3.40.2
Go Version   go1.19.1
Go Compiler  gc

Plugins
NAME    VERSION
nodejs  unknown

Host     
OS       darwin
Version  12.5.1
Arch     x86_64

This project is written in nodejs: executable='/Users/tyranthosaur/.asdf/shims/node' version='v18.6.0'

Current Stack: loki-production

TYPE                                                            URN
pulumi:pulumi:Stack                                             urn:pulumi:loki-production::loki::pulumi:pulumi:Stack::loki-loki-production
pulumi:providers:github                                         urn:pulumi:loki-production::loki::pulumi:providers:github::default_5_0_0
pulumi:providers:aws                                            urn:pulumi:loki-production::loki::pulumi:providers:aws::default_5_16_0
aws:s3/bucket:Bucket                                            urn:pulumi:loki-production::loki::aws:s3/bucket:Bucket::loki
aws:iam/user:User                                               urn:pulumi:loki-production::loki::aws:iam/user:User::loki
aws:iam/userPolicy:UserPolicy                                   urn:pulumi:loki-production::loki::aws:iam/userPolicy:UserPolicy::loki
aws:iam/accessKey:AccessKey                                     urn:pulumi:loki-production::loki::aws:iam/accessKey:AccessKey::loki
github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret  urn:pulumi:loki-production::loki::github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret::lokiAWSAccessKeyId
pulumi:providers:aws                                            urn:pulumi:loki-production::loki::pulumi:providers:aws::default_5_10_0
pulumi:providers:github                                         urn:pulumi:loki-production::loki::pulumi:providers:github::default_4_15_1
github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret  urn:pulumi:loki-production::loki::github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret::lokiAWSSecretAccessKey

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@anthonator anthonator added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Sep 28, 2022
@lblackstone
Copy link
Member

Could this be related to integrations/terraform-provider-github#578?

integrations/terraform-provider-github#578 (comment) suggests setting the owner field of the Provider configuration as a workaround.

@lblackstone lblackstone added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). and removed needs-triage Needs attention from the triage team labels Oct 3, 2022
@anthonator
Copy link
Author

We have github:owner set in our configuration. This was working properly only until recently.

@anthonator
Copy link
Author

We also tried the following with the same error.

github.getActionsPublicKey({
  repository: `ownername/${repository}`,
});

@lblackstone lblackstone removed the awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). label Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

3 participants