-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
597 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,6 @@ jobs: | |
|
||
steps: | ||
- uses: backstage/actions/[email protected] | ||
with: | ||
app-id: ${{ secrets.BACKSTAGE_GOALIE_APPLICATION_ID }} | ||
private-key: ${{ secrets.BACKSTAGE_GOALIE_PRIVATE_KEY }} |
Binary file not shown.
Binary file added
BIN
+19.7 KB
.yarn/cache/@octokit-auth-oauth-app-npm-4.3.1-8178f8e6aa-d335b379ca.zip
Binary file not shown.
Binary file added
BIN
+22.3 KB
.yarn/cache/@octokit-auth-oauth-device-npm-3.1.2-fb163c5218-2aa84911e1.zip
Binary file not shown.
Binary file added
BIN
+26.9 KB
.yarn/cache/@octokit-auth-oauth-user-npm-1.3.0-589767f915-666ed20f47.zip
Binary file not shown.
Binary file added
BIN
+12.3 KB
.yarn/cache/@octokit-oauth-authorization-url-npm-4.3.3-7009cac13d-98a33c80ad.zip
Binary file not shown.
Binary file added
BIN
+28.7 KB
.yarn/cache/@octokit-oauth-methods-npm-1.2.6-d04e93e0fe-524205cb88.zip
Binary file not shown.
Binary file added
BIN
+244 KB
.yarn/cache/@octokit-openapi-types-npm-12.5.0-bb6a162481-66d950ed3d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.78 KB
.yarn/cache/buffer-equal-constant-time-npm-1.0.1-41826f3419-80bb945f5d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+17 KB
.yarn/cache/universal-github-app-jwt-npm-1.1.0-47f0de09a5-b6ebbe2533.zip
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import * as core from '@actions/core'; | ||
import * as github from '@actions/github'; | ||
import { createAppAuth } from '@octokit/auth-app'; | ||
|
||
interface Options { | ||
appId: string; | ||
privateKey: string; | ||
// organization: string; | ||
} | ||
|
||
export function readGetApplicationTokenOptions(): Options { | ||
return { | ||
appId: core.getInput('app-id', { required: true }), | ||
privateKey: core.getInput('private-key', { required: true }), | ||
// organization: core.getInput('organization', { required: true }), | ||
}; | ||
} | ||
|
||
export function getApplicationToken(options: Options) { | ||
const { appId, privateKey } = options; | ||
|
||
const client = github.getOctokit('', { | ||
authStrategy: createAppAuth, | ||
auth: { | ||
appId, | ||
privateKey, | ||
}, | ||
}); | ||
return client; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.