Skip to content

Commit cd8957e

Browse files
author
Alex Qiu
authored
Upgrade terraform-provider-github to v5.20.0
2 parents e5d900c + 4710695 commit cd8957e

File tree

106 files changed

+6573
-1410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+6573
-1410
lines changed

provider/cmd/pulumi-resource-github/schema.json

Lines changed: 476 additions & 1186 deletions
Large diffs are not rendered by default.

provider/go.mod

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ go 1.19
44

55
require (
66
github.com/hashicorp/terraform-plugin-sdk v1.17.2
7-
github.com/integrations/terraform-provider-github/v5 v5.18.3
8-
github.com/pulumi/pulumi-terraform-bridge/v3 v3.42.1
9-
github.com/pulumi/pulumi/sdk/v3 v3.56.0
7+
github.com/integrations/terraform-provider-github/v5 v5.20.0
8+
github.com/pulumi/pulumi-terraform-bridge/v3 v3.43.0
9+
github.com/pulumi/pulumi/sdk/v3 v3.59.0
1010
)
1111

1212
require (
@@ -36,10 +36,11 @@ require (
3636
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
3737
github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect
3838
github.com/Masterminds/goutils v1.1.1 // indirect
39+
github.com/Masterminds/semver v1.5.0 // indirect
3940
github.com/Masterminds/semver/v3 v3.1.1 // indirect
4041
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
4142
github.com/Microsoft/go-winio v0.5.2 // indirect
42-
github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 // indirect
43+
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
4344
github.com/acomagu/bufpipe v1.0.3 // indirect
4445
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
4546
github.com/agext/levenshtein v1.2.3 // indirect
@@ -94,7 +95,7 @@ require (
9495
github.com/golang/protobuf v1.5.2 // indirect
9596
github.com/golang/snappy v0.0.4 // indirect
9697
github.com/google/go-cmp v0.5.9 // indirect
97-
github.com/google/go-github/v50 v50.1.0 // indirect
98+
github.com/google/go-github/v50 v50.2.0 // indirect
9899
github.com/google/go-querystring v1.1.0 // indirect
99100
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
100101
github.com/google/uuid v1.3.0 // indirect
@@ -173,7 +174,7 @@ require (
173174
github.com/posener/complete v1.2.3 // indirect
174175
github.com/pulumi/pulumi-java/pkg v0.8.0 // indirect
175176
github.com/pulumi/pulumi-yaml v1.0.4 // indirect
176-
github.com/pulumi/pulumi/pkg/v3 v3.56.0 // indirect
177+
github.com/pulumi/pulumi/pkg/v3 v3.59.0 // indirect
177178
github.com/pulumi/schema-tools v0.1.2 // indirect
178179
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e // indirect
179180
github.com/rivo/uniseg v0.4.2 // indirect
@@ -189,7 +190,7 @@ require (
189190
github.com/shurcooL/githubv4 v0.0.0-20221126192849-0b5c4c7994eb // indirect
190191
github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 // indirect
191192
github.com/skeema/knownhosts v1.1.0 // indirect
192-
github.com/spf13/afero v1.9.3 // indirect
193+
github.com/spf13/afero v1.9.5 // indirect
193194
github.com/spf13/cast v1.5.0 // indirect
194195
github.com/spf13/cobra v1.6.1 // indirect
195196
github.com/spf13/pflag v1.0.5 // indirect

provider/go.sum

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go
290290
github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
291291
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
292292
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
293+
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
293294
github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
294295
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
295296
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
@@ -326,8 +327,9 @@ github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMo
326327
github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8/go.mod h1:oX5x61PbNXchhh0oikYAH+4Pcfw5LKv21+Jnpr6r6Pc=
327328
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
328329
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
329-
github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 h1:ra2OtmuW0AE5csawV4YXMNGNQQXvLRps3z2Z59OPO+I=
330330
github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8=
331+
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 h1:wPbRQzjjwFc0ih8puEVAOFGELsn1zoIIYdxvML7mDxA=
332+
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g=
331333
github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
332334
github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
333335
github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
@@ -973,8 +975,8 @@ github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN
973975
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
974976
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
975977
github.com/google/go-containerregistry v0.5.1/go.mod h1:Ct15B4yir3PLOP5jsy0GNeYVaIZs/MK/Jz5any1wFW0=
976-
github.com/google/go-github/v50 v50.1.0 h1:hMUpkZjklC5GJ+c3GquSqOP/T4BNsB7XohaPhtMOzRk=
977-
github.com/google/go-github/v50 v50.1.0/go.mod h1:Ev4Tre8QoKiolvbpOSG3FIi4Mlon3S2Nt9W5JYqKiwA=
978+
github.com/google/go-github/v50 v50.2.0 h1:j2FyongEHlO9nxXLc+LP3wuBSVU9mVxfpdYUexMpIfk=
979+
github.com/google/go-github/v50 v50.2.0/go.mod h1:VBY8FB6yPIjrtKhozXv4FQupxKLS6H4m6xFZlT43q8Q=
978980
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
979981
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
980982
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
@@ -1254,8 +1256,8 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
12541256
github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
12551257
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
12561258
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
1257-
github.com/integrations/terraform-provider-github/v5 v5.18.3 h1:5ulyi2P1hzmquNnYdmDbyGDzPeDUCjW5CD9p5ioiteQ=
1258-
github.com/integrations/terraform-provider-github/v5 v5.18.3/go.mod h1:MEbvVx3pZmbRMTJbkybURTVcnKNqSdpa1JfbkjBlW3o=
1259+
github.com/integrations/terraform-provider-github/v5 v5.20.0 h1:44DMk8eDeXWXXRHfqeCweBExpagh1+O/yT10GwzA9VE=
1260+
github.com/integrations/terraform-provider-github/v5 v5.20.0/go.mod h1:+pMZsL3RiChh8GEfGcet0ZRHbIjZLpC7kb8J/tMSDfI=
12591261
github.com/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ=
12601262
github.com/ionos-cloud/sdk-go/v6 v6.1.0/go.mod h1:Ox3W0iiEz0GHnfY9e5LmAxwklsxguuNFEUSu0gVRTME=
12611263
github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA=
@@ -1696,14 +1698,14 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO
16961698
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
16971699
github.com/pulumi/pulumi-java/pkg v0.8.0 h1:b81/D/dk5/9OEH1k5BJxhqYiQc7Y4TPDbHVGBvJU1GE=
16981700
github.com/pulumi/pulumi-java/pkg v0.8.0/go.mod h1:x7/J1GCJ+hHFBEgnMr4QpsTfjXUNHccAHJ9gvFfmAFU=
1699-
github.com/pulumi/pulumi-terraform-bridge/v3 v3.42.1 h1:W3RJShHlsvVmTRuftLdp1yLQpRqU0c66iQMpxVqXVOs=
1700-
github.com/pulumi/pulumi-terraform-bridge/v3 v3.42.1/go.mod h1:ej3U842Dtjk6kIQv2b3dtHKqFyggbZqlDoPWzc2EZvM=
1701+
github.com/pulumi/pulumi-terraform-bridge/v3 v3.43.0 h1:yGbnrSpcqC+T/eXba7MgAuqc25Iv2Cf71puA5m8fQRQ=
1702+
github.com/pulumi/pulumi-terraform-bridge/v3 v3.43.0/go.mod h1:tyvu1G9JH1kMNzYYpODtTv/7fgK+ko174AEHn+uSJ0o=
17011703
github.com/pulumi/pulumi-yaml v1.0.4 h1:p+989rW3AqkkxbzxtxccHKAN4xCJi3K2cRpvA2K84tw=
17021704
github.com/pulumi/pulumi-yaml v1.0.4/go.mod h1:Szj8ud4Vqyq3oO1n3kzIUfaP3AiCjYZM4FYjOVWwJn8=
1703-
github.com/pulumi/pulumi/pkg/v3 v3.56.0 h1:GAqRHERowIXCTUM2PX2t0G/UKze06WVhv52S8eO2lE8=
1704-
github.com/pulumi/pulumi/pkg/v3 v3.56.0/go.mod h1:l91pIemOEbGBX2tIoVb3r4YlIv3BoTBvyVpECFsVZ3c=
1705-
github.com/pulumi/pulumi/sdk/v3 v3.56.0 h1:OQHb17GwDaLdzffvdr6+1KKRA9PNR8XVWmKkQOEm6Yk=
1706-
github.com/pulumi/pulumi/sdk/v3 v3.56.0/go.mod h1:Pb5H3OaRZg0n4TRIfY0pagR/NBIEvjp3lZe2Spr6Umc=
1705+
github.com/pulumi/pulumi/pkg/v3 v3.59.0 h1:RlY3FnW7gEyLEbdNlJBE0mpOX4H5NtF7eOqDxfl/Juc=
1706+
github.com/pulumi/pulumi/pkg/v3 v3.59.0/go.mod h1:whC7X+KJOqKcZtcUWypaOhYuQJitnF+32TQQAa5sgIU=
1707+
github.com/pulumi/pulumi/sdk/v3 v3.59.0 h1:ONbWeLkPX27aMwux+Y548qRaUn+mdJC79f68espqpZ8=
1708+
github.com/pulumi/pulumi/sdk/v3 v3.59.0/go.mod h1:Pb5H3OaRZg0n4TRIfY0pagR/NBIEvjp3lZe2Spr6Umc=
17071709
github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo=
17081710
github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k=
17091711
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk=
@@ -1788,8 +1790,8 @@ github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B
17881790
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
17891791
github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4=
17901792
github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
1791-
github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk=
1792-
github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
1793+
github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM=
1794+
github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ=
17931795
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
17941796
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
17951797
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
@@ -2064,7 +2066,6 @@ golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5y
20642066
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
20652067
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
20662068
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
2067-
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
20682069
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
20692070
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
20702071
golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=

sdk/dotnet/ActionsRunnerGroup.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public partial class ActionsRunnerGroup : global::Pulumi.CustomResource
8181
/// If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.
8282
/// </summary>
8383
[Output("restrictedToWorkflows")]
84-
public Output<bool> RestrictedToWorkflows { get; private set; } = null!;
84+
public Output<bool?> RestrictedToWorkflows { get; private set; } = null!;
8585

8686
/// <summary>
8787
/// The GitHub API URL for the runner group's runners
@@ -165,6 +165,12 @@ public sealed class ActionsRunnerGroupArgs : global::Pulumi.ResourceArgs
165165
[Input("name")]
166166
public Input<string>? Name { get; set; }
167167

168+
/// <summary>
169+
/// If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.
170+
/// </summary>
171+
[Input("restrictedToWorkflows")]
172+
public Input<bool>? RestrictedToWorkflows { get; set; }
173+
168174
[Input("selectedRepositoryIds")]
169175
private InputList<int>? _selectedRepositoryIds;
170176

@@ -177,6 +183,18 @@ public InputList<int> SelectedRepositoryIds
177183
set => _selectedRepositoryIds = value;
178184
}
179185

186+
[Input("selectedWorkflows")]
187+
private InputList<string>? _selectedWorkflows;
188+
189+
/// <summary>
190+
/// List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
191+
/// </summary>
192+
public InputList<string> SelectedWorkflows
193+
{
194+
get => _selectedWorkflows ?? (_selectedWorkflows = new InputList<string>());
195+
set => _selectedWorkflows = value;
196+
}
197+
180198
/// <summary>
181199
/// Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
182200
/// </summary>

sdk/dotnet/BranchProtectionV3.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace Pulumi.Github
5454
/// var exampleTeam = new Github.Team("exampleTeam");
5555
///
5656
/// // Protect the main branch of the foo repository. Additionally, require that
57-
/// // the "ci/check" check ran by the Github Actions app is passing and only allow
57+
/// // the "ci/check" check ran by the Github Actions app is passing and only allow
5858
/// // the engineers team merge to the branch.
5959
/// var exampleBranchProtectionV3 = new Github.BranchProtectionV3("exampleBranchProtectionV3", new()
6060
/// {
@@ -80,6 +80,21 @@ namespace Pulumi.Github
8080
/// {
8181
/// exampleTeam.Slug,
8282
/// },
83+
/// BypassPullRequestAllowances = new Github.Inputs.BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowancesArgs
84+
/// {
85+
/// Users = new[]
86+
/// {
87+
/// "foo-user",
88+
/// },
89+
/// Teams = new[]
90+
/// {
91+
/// exampleTeam.Slug,
92+
/// },
93+
/// Apps = new[]
94+
/// {
95+
/// "foo-app",
96+
/// },
97+
/// },
8398
/// },
8499
/// Restrictions = new Github.Inputs.BranchProtectionV3RestrictionsArgs
85100
/// {
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
3+
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Collections.Immutable;
7+
using System.Threading.Tasks;
8+
using Pulumi.Serialization;
9+
10+
namespace Pulumi.Github
11+
{
12+
public static class GetActionsOrganizationPublicKey
13+
{
14+
/// <summary>
15+
/// Use this data source to retrieve information about a GitHub Actions Organization public key. This data source is required to be used with other GitHub secrets interactions.
16+
/// Note that the provider `token` must have admin rights to an organization to retrieve it's action public key.
17+
///
18+
/// {{% examples %}}
19+
/// ## Example Usage
20+
/// {{% example %}}
21+
///
22+
/// ```csharp
23+
/// using System.Collections.Generic;
24+
/// using Pulumi;
25+
/// using Github = Pulumi.Github;
26+
///
27+
/// return await Deployment.RunAsync(() =&gt;
28+
/// {
29+
/// var example = Github.GetActionsOrganizationPublicKey.Invoke();
30+
///
31+
/// });
32+
/// ```
33+
/// {{% /example %}}
34+
/// {{% /examples %}}
35+
/// </summary>
36+
public static Task<GetActionsOrganizationPublicKeyResult> InvokeAsync(InvokeOptions? options = null)
37+
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetActionsOrganizationPublicKeyResult>("github:index/getActionsOrganizationPublicKey:getActionsOrganizationPublicKey", InvokeArgs.Empty, options.WithDefaults());
38+
}
39+
40+
41+
[OutputType]
42+
public sealed class GetActionsOrganizationPublicKeyResult
43+
{
44+
/// <summary>
45+
/// The provider-assigned unique ID for this managed resource.
46+
/// </summary>
47+
public readonly string Id;
48+
/// <summary>
49+
/// Actual key retrieved.
50+
/// </summary>
51+
public readonly string Key;
52+
/// <summary>
53+
/// ID of the key that has been retrieved.
54+
/// </summary>
55+
public readonly string KeyId;
56+
57+
[OutputConstructor]
58+
private GetActionsOrganizationPublicKeyResult(
59+
string id,
60+
61+
string key,
62+
63+
string keyId)
64+
{
65+
Id = id;
66+
Key = key;
67+
KeyId = keyId;
68+
}
69+
}
70+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
3+
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Collections.Immutable;
7+
using System.Threading.Tasks;
8+
using Pulumi.Serialization;
9+
10+
namespace Pulumi.Github
11+
{
12+
public static class GetDependabotOrganizationPublicKey
13+
{
14+
/// <summary>
15+
/// Use this data source to retrieve information about a GitHub Dependabot Organization public key. This data source is required to be used with other GitHub secrets interactions.
16+
/// Note that the provider `token` must have admin rights to an organization to retrieve it's Dependabot public key.
17+
///
18+
/// {{% examples %}}
19+
/// ## Example Usage
20+
/// {{% example %}}
21+
///
22+
/// ```csharp
23+
/// using System.Collections.Generic;
24+
/// using Pulumi;
25+
/// using Github = Pulumi.Github;
26+
///
27+
/// return await Deployment.RunAsync(() =&gt;
28+
/// {
29+
/// var example = Github.GetDependabotOrganizationPublicKey.Invoke();
30+
///
31+
/// });
32+
/// ```
33+
/// {{% /example %}}
34+
/// {{% /examples %}}
35+
/// </summary>
36+
public static Task<GetDependabotOrganizationPublicKeyResult> InvokeAsync(InvokeOptions? options = null)
37+
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetDependabotOrganizationPublicKeyResult>("github:index/getDependabotOrganizationPublicKey:getDependabotOrganizationPublicKey", InvokeArgs.Empty, options.WithDefaults());
38+
}
39+
40+
41+
[OutputType]
42+
public sealed class GetDependabotOrganizationPublicKeyResult
43+
{
44+
/// <summary>
45+
/// The provider-assigned unique ID for this managed resource.
46+
/// </summary>
47+
public readonly string Id;
48+
/// <summary>
49+
/// Actual key retrieved.
50+
/// </summary>
51+
public readonly string Key;
52+
/// <summary>
53+
/// ID of the key that has been retrieved.
54+
/// </summary>
55+
public readonly string KeyId;
56+
57+
[OutputConstructor]
58+
private GetDependabotOrganizationPublicKeyResult(
59+
string id,
60+
61+
string key,
62+
63+
string keyId)
64+
{
65+
Id = id;
66+
Key = key;
67+
KeyId = keyId;
68+
}
69+
}
70+
}

0 commit comments

Comments
 (0)