|
7 | 7 |
|
8 | 8 | # Configure 1Password provider with account details |
9 | 9 | onepassword_provider = onepassword.Provider( |
10 | | - "onepassword-provider", |
11 | | - account="nf-core.1password.eu" |
| 10 | + "onepassword-provider", account="nf-core.1password.eu" |
12 | 11 | ) |
13 | 12 |
|
14 | 13 | # Fetch GitHub token from 1Password |
15 | 14 | # Item ID from the 1Password URL: 4ajrv44kc5lcbboa37fr5oydla |
16 | 15 | # Vault ID from the 1Password URL: rdfcz6oy6qxxrc4clu467a7dmm |
17 | 16 | github_token_item = onepassword.get_item( |
18 | 17 | vault="rdfcz6oy6qxxrc4clu467a7dmm", # Vault ID from the 1Password URL |
19 | | - uuid="4ajrv44kc5lcbboa37fr5oydla", # Item ID from the 1Password URL |
20 | | - opts=pulumi.InvokeOptions(provider=onepassword_provider) |
| 18 | + uuid="4ajrv44kc5lcbboa37fr5oydla", # Item ID from the 1Password URL |
| 19 | + opts=pulumi.InvokeOptions(provider=onepassword_provider), |
21 | 20 | ) |
22 | 21 |
|
23 | 22 | # Configure GitHub provider with token from 1Password |
24 | 23 | github_provider = github.Provider( |
25 | 24 | "github-provider", |
26 | 25 | token=github_token_item.password, # The token is stored in the password field |
27 | | - owner="nf-core-tf" |
| 26 | + owner="nf-core-tf", |
28 | 27 | ) |
29 | 28 |
|
30 | 29 | NAME = "testpipeline" |
|
81 | 80 | visibility="public", |
82 | 81 | topics=TOPICS, # 'repo_keywords' => 'Minimum keywords set', |
83 | 82 | # NOTE: @mirpedrol asked if we could add missing topics without deleting existing ones |
84 | | - opts=pulumi.ResourceOptions(provider=github_provider) |
| 83 | + opts=pulumi.ResourceOptions(provider=github_provider), |
85 | 84 | ) |
86 | 85 |
|
87 | 86 |
|
|
0 commit comments