Skip to content

Commit

Permalink
feat: set up bjerkbot github token in flexisoftorg (#67)
Browse files Browse the repository at this point in the history
* feat: set up bjerkbot github token in flexisoftorg

* import
  • Loading branch information
braaar authored Mar 20, 2024
1 parent 995450e commit 66de944
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './resources/bjerkorg';
import './resources/getbranches';
import './resources/npm';
import './resources/flexisoftorg';
25 changes: 25 additions & 0 deletions resources/flexisoftorg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import * as github from '@pulumi/github';
import * as pulumi from '@pulumi/pulumi';
import { getToken } from 'get-pulumi-secret';

export const flexisoftGitHubToken = pulumi.secret(
getToken({
name: 'flexisoftorg-token',
namespace: 'github',
}),
);

export const flexisoftGitHubProvider = new github.Provider('flexisoftorg', {
owner: 'flexisoftorg',
token: flexisoftGitHubToken,
});

new github.ActionsOrganizationSecret(
'flexisoftorg-github-token',
{
plaintextValue: flexisoftGitHubToken,
secretName: 'BOT_GITHUB_TOKEN',
visibility: 'all',
},
{ provider: flexisoftGitHubProvider },
);

0 comments on commit 66de944

Please sign in to comment.