Skip to content

Commit

Permalink
[Fix] missing environment name encoding for secrets (#1969)
Browse files Browse the repository at this point in the history
Fixes #1960

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
  • Loading branch information
saez0pub and kfcampbell authored Oct 25, 2023
1 parent b86c22c commit 020f217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/resource_github_actions_environment_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func resourceGithubActionsEnvironmentSecretCreateOrUpdate(d *schema.ResourceData
EncryptedValue: encryptedValue,
}

_, err = client.Actions.CreateOrUpdateEnvSecret(ctx, int(repo.GetID()), envName, eSecret)
_, err = client.Actions.CreateOrUpdateEnvSecret(ctx, int(repo.GetID()), escapedEnvName, eSecret)
if err != nil {
return err
}
Expand Down

0 comments on commit 020f217

Please sign in to comment.