Skip to content

Commit

Permalink
fix(ci): update the fingerprint for GitHub token endpoint (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunziping2016 authored Jul 23, 2024
1 parent 00357b2 commit 42813da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terraform/github-action/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ module "kms" {
## -----------------------------------------------------------------------------
## GRANT ACCESS TO ALIYUN
## -----------------------------------------------------------------------------A
data "tls_certificate" "github" {
url = "https://token.actions.githubusercontent.com/.well-known/openid-configuration"
}

resource "alicloud_ims_oidc_provider" "github" {
issuer_url = "https://token.actions.githubusercontent.com"
fingerprints = ["1b511abead59c6ce207077c0bf0e0043b1382612"]
fingerprints = [data.tls_certificate.github.certificates[0].sha1_fingerprint]
issuance_limit_time = "12"
oidc_provider_name = "GitHub"
client_ids = ["sts.aliyuncs.com"]
Expand Down

0 comments on commit 42813da

Please sign in to comment.