Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad38cffc07 | ||
|
|
66a7045686 | ||
|
|
d2eeb384df | ||
|
|
0fd38177ed | ||
|
|
b3be847492 | ||
|
|
c8f55efbd4 | ||
|
|
2aec84ed45 | ||
|
|
8d81a59103 | ||
|
|
a0de6af839 | ||
|
|
9d23fb93dd | ||
|
|
3cef845e01 | ||
|
|
7bfa3a4717 | ||
|
|
3c223c7336 | ||
|
|
6c406e8a24 | ||
|
|
beea7b860a | ||
|
|
e982ea3b55 | ||
|
|
34c66235f6 | ||
|
|
78e5f2ddc0 | ||
|
|
d9bc16919c | ||
|
|
f2acddfb51 | ||
|
|
babaff4320 |
36
README.md
36
README.md
@@ -12,6 +12,9 @@ In order to use this action, you need to:
|
|||||||
2. [Store the App's ID in your repository environment variables](https://docs.github.com/actions/learn-github-actions/variables#defining-configuration-variables-for-multiple-workflows) (example: `APP_ID`)
|
2. [Store the App's ID in your repository environment variables](https://docs.github.com/actions/learn-github-actions/variables#defining-configuration-variables-for-multiple-workflows) (example: `APP_ID`)
|
||||||
3. [Store the App's private key in your repository secrets](https://docs.github.com/actions/security-guides/encrypted-secrets?tool=webui#creating-encrypted-secrets-for-a-repository) (example: `PRIVATE_KEY`)
|
3. [Store the App's private key in your repository secrets](https://docs.github.com/actions/security-guides/encrypted-secrets?tool=webui#creating-encrypted-secrets-for-a-repository) (example: `PRIVATE_KEY`)
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> An installation access token expires after 1 hour. Please [see this comment](https://github.com/actions/create-github-app-token/issues/121#issuecomment-2043214796) for alternative approaches if you have long-running processes.
|
||||||
|
|
||||||
### Create a token for the current repository
|
### Create a token for the current repository
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -30,7 +33,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
app-id: ${{ vars.APP_ID }}
|
app-id: ${{ vars.APP_ID }}
|
||||||
private-key: ${{ secrets.PRIVATE_KEY }}
|
private-key: ${{ secrets.PRIVATE_KEY }}
|
||||||
github-api-url: "https://github.acme-inc.com/api/v3"
|
|
||||||
- uses: ./actions/staging-tests
|
- uses: ./actions/staging-tests
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.app-token.outputs.token }}
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
@@ -62,6 +64,26 @@ jobs:
|
|||||||
github_token: ${{ steps.app-token.outputs.token }}
|
github_token: ${{ steps.app-token.outputs.token }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Create a git committer string for an app installation
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/create-github-app-token@v1
|
||||||
|
id: app-token
|
||||||
|
with:
|
||||||
|
# required
|
||||||
|
app-id: ${{ vars.APP_ID }}
|
||||||
|
private-key: ${{ secrets.PRIVATE_KEY }}
|
||||||
|
- id: committer
|
||||||
|
run: echo "string=${{steps.app-auth.outputs.app-slug}}[bot] <${{ steps.app-auth.outputs.installation-id }}+${{ steps.app-auth.outputs.app-slug }}[bot]@users.noreply.github.com>" >> "$GITHUB_OUTPUT"
|
||||||
|
- run: echo "committer string is ${{steps.committer.outputs.string}}"
|
||||||
|
```
|
||||||
|
|
||||||
### Create a token for all repositories in the current owner's installation
|
### Create a token for all repositories in the current owner's installation
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -212,11 +234,11 @@ jobs:
|
|||||||
|
|
||||||
### `private-key`
|
### `private-key`
|
||||||
|
|
||||||
**Required:** GitHub App private key.
|
**Required:** GitHub App private key. Escaped newlines (`\\n`) will be automatically replaced with actual newlines.
|
||||||
|
|
||||||
### `owner`
|
### `owner`
|
||||||
|
|
||||||
**Optional:** GitHub App installation owner. If empty, defaults to the current repository owner.
|
**Optional:** The owner of the GitHub App installation. If empty, defaults to the current repository owner.
|
||||||
|
|
||||||
### `repositories`
|
### `repositories`
|
||||||
|
|
||||||
@@ -239,6 +261,14 @@ jobs:
|
|||||||
|
|
||||||
GitHub App installation access token.
|
GitHub App installation access token.
|
||||||
|
|
||||||
|
### `installation-id`
|
||||||
|
|
||||||
|
GitHub App installation ID.
|
||||||
|
|
||||||
|
### `app-slug`
|
||||||
|
|
||||||
|
GitHub App slug.
|
||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
|
||||||
The action creates an installation access token using [the `POST /app/installations/{installation_id}/access_tokens` endpoint](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app). By default,
|
The action creates an installation access token using [the `POST /app/installations/{installation_id}/access_tokens` endpoint](https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app). By default,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
deprecationMessage: "'private_key' is deprecated and will be removed in a future version. Use 'private-key' instead."
|
deprecationMessage: "'private_key' is deprecated and will be removed in a future version. Use 'private-key' instead."
|
||||||
owner:
|
owner:
|
||||||
description: "GitHub App owner (defaults to current repository owner)"
|
description: "The owner of the GitHub App installation (defaults to current repository owner)"
|
||||||
required: false
|
required: false
|
||||||
repositories:
|
repositories:
|
||||||
description: "Repositories to install the GitHub App on (defaults to current repository if owner is unset)"
|
description: "Repositories to install the GitHub App on (defaults to current repository if owner is unset)"
|
||||||
@@ -40,6 +40,10 @@ inputs:
|
|||||||
outputs:
|
outputs:
|
||||||
token:
|
token:
|
||||||
description: "GitHub installation access token"
|
description: "GitHub installation access token"
|
||||||
|
installation-id:
|
||||||
|
description: "GitHub App installation ID"
|
||||||
|
app-slug:
|
||||||
|
description: "GitHub App slug"
|
||||||
runs:
|
runs:
|
||||||
using: "node20"
|
using: "node20"
|
||||||
main: "dist/main.cjs"
|
main: "dist/main.cjs"
|
||||||
|
|||||||
37373
dist/main.cjs
vendored
37373
dist/main.cjs
vendored
File diff suppressed because one or more lines are too long
23988
dist/post.cjs
vendored
23988
dist/post.cjs
vendored
File diff suppressed because one or more lines are too long
26
lib/main.js
26
lib/main.js
@@ -70,40 +70,41 @@ export async function main(
|
|||||||
request,
|
request,
|
||||||
});
|
});
|
||||||
|
|
||||||
let authentication;
|
let authentication, installationId, appSlug;
|
||||||
// If at least one repository is set, get installation ID from that repository
|
// If at least one repository is set, get installation ID from that repository
|
||||||
|
|
||||||
if (parsedRepositoryNames) {
|
if (parsedRepositoryNames) {
|
||||||
authentication = await pRetry(() => getTokenFromRepository(request, auth, parsedOwner, parsedRepositoryNames), {
|
({ authentication, installationId, appSlug } = await pRetry(() => getTokenFromRepository(request, auth, parsedOwner, parsedRepositoryNames), {
|
||||||
onFailedAttempt: (error) => {
|
onFailedAttempt: (error) => {
|
||||||
core.info(
|
core.info(
|
||||||
`Failed to create token for "${parsedRepositoryNames}" (attempt ${error.attemptNumber}): ${error.message}`
|
`Failed to create token for "${parsedRepositoryNames}" (attempt ${error.attemptNumber}): ${error.message}`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
retries: 3,
|
retries: 3,
|
||||||
});
|
}));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Otherwise get the installation for the owner, which can either be an organization or a user account
|
// Otherwise get the installation for the owner, which can either be an organization or a user account
|
||||||
authentication = await pRetry(() => getTokenFromOwner(request, auth, parsedOwner), {
|
({ authentication, installationId, appSlug } = await pRetry(() => getTokenFromOwner(request, auth, parsedOwner), {
|
||||||
onFailedAttempt: (error) => {
|
onFailedAttempt: (error) => {
|
||||||
core.info(
|
core.info(
|
||||||
`Failed to create token for "${parsedOwner}" (attempt ${error.attemptNumber}): ${error.message}`
|
`Failed to create token for "${parsedOwner}" (attempt ${error.attemptNumber}): ${error.message}`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
retries: 3,
|
retries: 3,
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register the token with the runner as a secret to ensure it is masked in logs
|
// Register the token with the runner as a secret to ensure it is masked in logs
|
||||||
core.setSecret(authentication.token);
|
core.setSecret(authentication.token);
|
||||||
|
|
||||||
core.setOutput("token", authentication.token);
|
core.setOutput("token", authentication.token);
|
||||||
|
core.setOutput("installation-id", installationId);
|
||||||
|
core.setOutput("app-slug", appSlug);
|
||||||
|
|
||||||
// Make token accessible to post function (so we can invalidate it)
|
// Make token accessible to post function (so we can invalidate it)
|
||||||
if (!skipTokenRevoke) {
|
if (!skipTokenRevoke) {
|
||||||
core.saveState("token", authentication.token);
|
core.saveState("token", authentication.token);
|
||||||
core.setOutput("expiresAt", authentication.expiresAt);
|
core.saveState("expiresAt", authentication.expiresAt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,7 +133,11 @@ async function getTokenFromOwner(request, auth, parsedOwner) {
|
|||||||
type: "installation",
|
type: "installation",
|
||||||
installationId: response.data.id,
|
installationId: response.data.id,
|
||||||
});
|
});
|
||||||
return authentication;
|
|
||||||
|
const installationId = response.data.id;
|
||||||
|
const appSlug = response.data['app_slug'];
|
||||||
|
|
||||||
|
return { authentication, installationId, appSlug };
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getTokenFromRepository(request, auth, parsedOwner, parsedRepositoryNames) {
|
async function getTokenFromRepository(request, auth, parsedOwner, parsedRepositoryNames) {
|
||||||
@@ -152,5 +157,8 @@ async function getTokenFromRepository(request, auth, parsedOwner, parsedReposito
|
|||||||
repositoryNames: parsedRepositoryNames.split(","),
|
repositoryNames: parsedRepositoryNames.split(","),
|
||||||
});
|
});
|
||||||
|
|
||||||
return authentication;
|
const installationId = response.data.id;
|
||||||
|
const appSlug = response.data['app_slug'];
|
||||||
|
|
||||||
|
return { authentication, installationId, appSlug };
|
||||||
}
|
}
|
||||||
1305
package-lock.json
generated
1305
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@@ -2,7 +2,7 @@
|
|||||||
"name": "create-github-app-token",
|
"name": "create-github-app-token",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.8.2",
|
"version": "1.10.2",
|
||||||
"description": "GitHub Action for creating a GitHub App Installation Access Token",
|
"description": "GitHub Action for creating a GitHub App Installation Access Token",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0",
|
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0",
|
||||||
@@ -13,20 +13,20 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"@octokit/auth-app": "^6.0.4",
|
"@octokit/auth-app": "^7.1.0",
|
||||||
"@octokit/request": "^9.0.1",
|
"@octokit/request": "^9.0.1",
|
||||||
"p-retry": "^6.2.0",
|
"p-retry": "^6.2.0",
|
||||||
"undici": "^6.6.2"
|
"undici": "^6.18.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sinonjs/fake-timers": "^11.2.2",
|
"@sinonjs/fake-timers": "^11.2.2",
|
||||||
"ava": "^6.1.2",
|
"ava": "^6.1.3",
|
||||||
"c8": "^9.1.0",
|
"c8": "^9.1.0",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"esbuild": "^0.20.1",
|
"esbuild": "^0.21.4",
|
||||||
"execa": "^8.0.1",
|
"execa": "^9.1.0",
|
||||||
"open-cli": "^8.0.0",
|
"open-cli": "^8.0.0",
|
||||||
"yaml": "^2.4.0"
|
"yaml": "^2.4.2"
|
||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"branches": [
|
"branches": [
|
||||||
|
|||||||
6
tests/main-private-key-with-escaped-newlines.js
Normal file
6
tests/main-private-key-with-escaped-newlines.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { test, DEFAULT_ENV } from "./main.js";
|
||||||
|
|
||||||
|
// Verify `main` works correctly when `private-key` input has escaped newlines
|
||||||
|
await test(() => {
|
||||||
|
process.env['INPUT_PRIVATE-KEY'] = DEFAULT_ENV.PRIVATE_KEY.replace(/\n/g, '\\n')
|
||||||
|
});
|
||||||
@@ -9,6 +9,7 @@ await test((mockPool) => {
|
|||||||
const owner = process.env.INPUT_OWNER
|
const owner = process.env.INPUT_OWNER
|
||||||
const repo = process.env.INPUT_REPOSITORIES
|
const repo = process.env.INPUT_REPOSITORIES
|
||||||
const mockInstallationId = "123456";
|
const mockInstallationId = "123456";
|
||||||
|
const mockAppSlug = "github-actions";
|
||||||
|
|
||||||
install({ now: 0, toFake: ["Date"] });
|
install({ now: 0, toFake: ["Date"] });
|
||||||
|
|
||||||
@@ -44,7 +45,8 @@ await test((mockPool) => {
|
|||||||
return {
|
return {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
data: {
|
data: {
|
||||||
id: mockInstallationId
|
id: mockInstallationId,
|
||||||
|
"app_slug": mockAppSlug
|
||||||
},
|
},
|
||||||
responseOptions: {
|
responseOptions: {
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ await test((mockPool) => {
|
|||||||
const owner = process.env.INPUT_OWNER;
|
const owner = process.env.INPUT_OWNER;
|
||||||
const repo = process.env.INPUT_REPOSITORIES;
|
const repo = process.env.INPUT_REPOSITORIES;
|
||||||
const mockInstallationId = "123456";
|
const mockInstallationId = "123456";
|
||||||
|
const mockAppSlug = "github-actions";
|
||||||
|
|
||||||
mockPool
|
mockPool
|
||||||
.intercept({
|
.intercept({
|
||||||
@@ -32,7 +33,7 @@ await test((mockPool) => {
|
|||||||
})
|
})
|
||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{ id: mockInstallationId },
|
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
||||||
{ headers: { "content-type": "application/json" } }
|
{ headers: { "content-type": "application/json" } }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ await test((mockPool) => {
|
|||||||
process.env.INPUT_OWNER = process.env.GITHUB_REPOSITORY_OWNER;
|
process.env.INPUT_OWNER = process.env.GITHUB_REPOSITORY_OWNER;
|
||||||
delete process.env.INPUT_REPOSITORIES;
|
delete process.env.INPUT_REPOSITORIES;
|
||||||
|
|
||||||
// Mock installation id request
|
// Mock installation id and app slug request
|
||||||
const mockInstallationId = "123456";
|
const mockInstallationId = "123456";
|
||||||
|
const mockAppSlug = "github-actions";
|
||||||
mockPool
|
mockPool
|
||||||
.intercept({
|
.intercept({
|
||||||
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
||||||
@@ -19,7 +20,7 @@ await test((mockPool) => {
|
|||||||
})
|
})
|
||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{ id: mockInstallationId },
|
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
||||||
{ headers: { "content-type": "application/json" } }
|
{ headers: { "content-type": "application/json" } }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ await test((mockPool) => {
|
|||||||
process.env.INPUT_OWNER = "smockle";
|
process.env.INPUT_OWNER = "smockle";
|
||||||
delete process.env.INPUT_REPOSITORIES;
|
delete process.env.INPUT_REPOSITORIES;
|
||||||
|
|
||||||
// Mock installation id request
|
// Mock installation ID and app slug request
|
||||||
const mockInstallationId = "123456";
|
const mockInstallationId = "123456";
|
||||||
|
const mockAppSlug = "github-actions";
|
||||||
mockPool
|
mockPool
|
||||||
.intercept({
|
.intercept({
|
||||||
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
||||||
@@ -30,7 +31,7 @@ await test((mockPool) => {
|
|||||||
})
|
})
|
||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{ id: mockInstallationId },
|
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
||||||
{ headers: { "content-type": "application/json" } }
|
{ headers: { "content-type": "application/json" } }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ await test((mockPool) => {
|
|||||||
process.env.INPUT_OWNER = "smockle";
|
process.env.INPUT_OWNER = "smockle";
|
||||||
delete process.env.INPUT_REPOSITORIES;
|
delete process.env.INPUT_REPOSITORIES;
|
||||||
|
|
||||||
// Mock installation id request
|
// Mock installation ID and app slug request
|
||||||
const mockInstallationId = "123456";
|
const mockInstallationId = "123456";
|
||||||
|
const mockAppSlug = "github-actions";
|
||||||
mockPool
|
mockPool
|
||||||
.intercept({
|
.intercept({
|
||||||
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
||||||
@@ -30,7 +31,7 @@ await test((mockPool) => {
|
|||||||
})
|
})
|
||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{ id: mockInstallationId },
|
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
||||||
{ headers: { "content-type": "application/json" } }
|
{ headers: { "content-type": "application/json" } }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ await test((mockPool) => {
|
|||||||
delete process.env.INPUT_OWNER;
|
delete process.env.INPUT_OWNER;
|
||||||
delete process.env.INPUT_REPOSITORIES;
|
delete process.env.INPUT_REPOSITORIES;
|
||||||
|
|
||||||
// Mock installation id request
|
// Mock installation ID and app slug request
|
||||||
const mockInstallationId = "123456";
|
const mockInstallationId = "123456";
|
||||||
|
const mockAppSlug = "github-actions";
|
||||||
mockPool
|
mockPool
|
||||||
.intercept({
|
.intercept({
|
||||||
path: `/repos/${process.env.GITHUB_REPOSITORY}/installation`,
|
path: `/repos/${process.env.GITHUB_REPOSITORY}/installation`,
|
||||||
@@ -19,7 +20,7 @@ await test((mockPool) => {
|
|||||||
})
|
})
|
||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{ id: mockInstallationId },
|
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
||||||
{ headers: { "content-type": "application/json" } }
|
{ headers: { "content-type": "application/json" } }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -54,8 +54,9 @@ export async function test(cb = (_mockPool) => {}, env = DEFAULT_ENV) {
|
|||||||
|
|
||||||
// Calling `auth({ type: "app" })` to obtain a JWT doesn’t make network requests, so no need to intercept.
|
// Calling `auth({ type: "app" })` to obtain a JWT doesn’t make network requests, so no need to intercept.
|
||||||
|
|
||||||
// Mock installation id request
|
// Mock installation ID and app slug request
|
||||||
const mockInstallationId = "123456";
|
const mockInstallationId = "123456";
|
||||||
|
const mockAppSlug = "github-actions";
|
||||||
const owner = env.INPUT_OWNER ?? env.GITHUB_REPOSITORY_OWNER;
|
const owner = env.INPUT_OWNER ?? env.GITHUB_REPOSITORY_OWNER;
|
||||||
const repo = encodeURIComponent(
|
const repo = encodeURIComponent(
|
||||||
(env.INPUT_REPOSITORIES ?? env.GITHUB_REPOSITORY).split(",")[0]
|
(env.INPUT_REPOSITORIES ?? env.GITHUB_REPOSITORY).split(",")[0]
|
||||||
@@ -72,7 +73,7 @@ export async function test(cb = (_mockPool) => {}, env = DEFAULT_ENV) {
|
|||||||
})
|
})
|
||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{ id: mockInstallationId },
|
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
||||||
{ headers: { "content-type": "application/json" } }
|
{ headers: { "content-type": "application/json" } }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -28,9 +28,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-missing-app-id.test.js
|
## main-missing-app-id.test.js
|
||||||
|
|
||||||
@@ -85,9 +88,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-token-get-owner-set-repo-set-to-many.test.js
|
## main-token-get-owner-set-repo-set-to-many.test.js
|
||||||
|
|
||||||
@@ -101,9 +107,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-token-get-owner-set-repo-set-to-one.test.js
|
## main-token-get-owner-set-repo-set-to-one.test.js
|
||||||
|
|
||||||
@@ -117,9 +126,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-token-get-owner-set-to-org-repo-unset.test.js
|
## main-token-get-owner-set-to-org-repo-unset.test.js
|
||||||
|
|
||||||
@@ -133,9 +145,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-token-get-owner-set-to-user-fail-response.test.js
|
## main-token-get-owner-set-to-user-fail-response.test.js
|
||||||
|
|
||||||
@@ -150,9 +165,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-token-get-owner-set-to-user-repo-unset.test.js
|
## main-token-get-owner-set-to-user-repo-unset.test.js
|
||||||
|
|
||||||
@@ -166,9 +184,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-token-get-owner-unset-repo-set.test.js
|
## main-token-get-owner-unset-repo-set.test.js
|
||||||
|
|
||||||
@@ -182,9 +203,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-token-get-owner-unset-repo-unset.test.js
|
## main-token-get-owner-unset-repo-unset.test.js
|
||||||
|
|
||||||
@@ -198,9 +222,12 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
␊
|
␊
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
␊
|
||||||
::set-output name=expiresAt::2016-07-11T22:14:10Z`
|
::set-output name=installation-id::123456␊
|
||||||
|
␊
|
||||||
|
::set-output name=app-slug::github-actions␊
|
||||||
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## post-revoke-token-fail-response.test.js
|
## post-revoke-token-fail-response.test.js
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user