Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21cfef2b49 | ||
|
|
1ff1dea6a9 | ||
|
|
0d564482f0 | ||
|
|
8cedd97af1 | ||
|
|
415f6a523d | ||
|
|
c14f92a8f9 | ||
|
|
d30def842e | ||
|
|
a5be4722a6 | ||
|
|
67e27a7eb7 | ||
|
|
8e85a3cf14 | ||
|
|
136412a57a | ||
|
|
b4192a5b36 | ||
|
|
29aa0514a7 | ||
|
|
a5f8600f58 | ||
|
|
0edddd70c8 | ||
|
|
bb3ca765af | ||
|
|
c1a285145b | ||
|
|
fa6118ca85 | ||
|
|
ae140fab7b | ||
|
|
c84b152776 | ||
|
|
26a5f3652e | ||
|
|
6f9957685a | ||
|
|
25cc3bdc27 | ||
|
|
a2c2dfabb4 | ||
|
|
349e62c51a |
33
.github/dependabot.yml
vendored
33
.github/dependabot.yml
vendored
@@ -1,19 +1,30 @@
|
|||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: 'npm'
|
||||||
directory: "/"
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: "monthly"
|
interval: 'monthly'
|
||||||
groups:
|
groups:
|
||||||
production-dependencies:
|
production-dependencies:
|
||||||
dependency-type: "production"
|
dependency-type: 'production'
|
||||||
|
update-types:
|
||||||
|
- minor
|
||||||
|
- patch
|
||||||
development-dependencies:
|
development-dependencies:
|
||||||
dependency-type: "development"
|
dependency-type: 'development'
|
||||||
|
update-types:
|
||||||
|
- minor
|
||||||
|
- patch
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "fix"
|
prefix: 'fix'
|
||||||
prefix-development: "build"
|
prefix-development: 'build'
|
||||||
include: "scope"
|
include: 'scope'
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: 'github-actions'
|
||||||
directory: "/"
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: "monthly"
|
interval: 'monthly'
|
||||||
|
groups:
|
||||||
|
github-actions:
|
||||||
|
update-types:
|
||||||
|
- minor
|
||||||
|
- patch
|
||||||
|
|||||||
17
.github/workflows/publish-immutable-action.yml
vendored
Normal file
17
.github/workflows/publish-immutable-action.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: 'Publish Immutable Action'
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Publish Immutable Action
|
||||||
|
uses: actions/publish-immutable-action@v0.0.4
|
||||||
@@ -86,7 +86,7 @@ jobs:
|
|||||||
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
- id: committer
|
- id: committer
|
||||||
run: echo "string=${{ steps.app-token.outputs.app-slug }}[bot] <${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>" >> "$GITHUB_OUTPUT"
|
run: echo "string=${{ steps.app-token.outputs.app-slug }}[bot] <${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>" >> "$GITHUB_OUTPUT"
|
||||||
- run: echo "committer string is ${ {steps.committer.outputs.string }}"
|
- run: echo "committer string is ${{ steps.committer.outputs.string }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configure git CLI for an app's bot user
|
### Configure git CLI for an app's bot user
|
||||||
@@ -111,7 +111,7 @@ jobs:
|
|||||||
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
- run: |
|
- run: |
|
||||||
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
|
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
|
||||||
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
|
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
|
||||||
# git commands like commit work using the bot user
|
# git commands like commit work using the bot user
|
||||||
- run: |
|
- run: |
|
||||||
git add .
|
git add .
|
||||||
|
|||||||
13019
dist/main.cjs
vendored
13019
dist/main.cjs
vendored
File diff suppressed because one or more lines are too long
11426
dist/post.cjs
vendored
11426
dist/post.cjs
vendored
File diff suppressed because one or more lines are too long
87
lib/main.js
87
lib/main.js
@@ -26,9 +26,7 @@ export async function main(
|
|||||||
|
|
||||||
// If neither owner nor repositories are set, default to current repository
|
// If neither owner nor repositories are set, default to current repository
|
||||||
if (!owner && repositories.length === 0) {
|
if (!owner && repositories.length === 0) {
|
||||||
const [owner, repo] = String(
|
const [owner, repo] = String(process.env.GITHUB_REPOSITORY).split("/");
|
||||||
process.env.GITHUB_REPOSITORY
|
|
||||||
).split("/");
|
|
||||||
parsedOwner = owner;
|
parsedOwner = owner;
|
||||||
parsedRepositoryNames = [repo];
|
parsedRepositoryNames = [repo];
|
||||||
|
|
||||||
@@ -52,7 +50,9 @@ export async function main(
|
|||||||
parsedRepositoryNames = repositories;
|
parsedRepositoryNames = repositories;
|
||||||
|
|
||||||
core.info(
|
core.info(
|
||||||
`owner not set, creating owner for given repositories "${repositories.join(',')}" in current owner ("${parsedOwner}")`
|
`owner not set, creating owner for given repositories "${repositories.join(
|
||||||
|
","
|
||||||
|
)}" in current owner ("${parsedOwner}")`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,7 +62,9 @@ export async function main(
|
|||||||
parsedRepositoryNames = repositories;
|
parsedRepositoryNames = repositories;
|
||||||
|
|
||||||
core.info(
|
core.info(
|
||||||
`owner and repositories set, creating token for repositories "${repositories.join(',')}" owned by "${owner}"`
|
`owner and repositories set, creating token for repositories "${repositories.join(
|
||||||
|
","
|
||||||
|
)}" owned by "${owner}"`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,24 +78,38 @@ export async function main(
|
|||||||
// 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.length > 0) {
|
if (parsedRepositoryNames.length > 0) {
|
||||||
({ authentication, installationId, appSlug } = await pRetry(() => getTokenFromRepository(request, auth, parsedOwner, parsedRepositoryNames), {
|
({ authentication, installationId, appSlug } = await pRetry(
|
||||||
onFailedAttempt: (error) => {
|
() =>
|
||||||
core.info(
|
getTokenFromRepository(
|
||||||
`Failed to create token for "${parsedRepositoryNames.join(',')}" (attempt ${error.attemptNumber}): ${error.message}`
|
request,
|
||||||
);
|
auth,
|
||||||
},
|
parsedOwner,
|
||||||
retries: 3,
|
parsedRepositoryNames
|
||||||
}));
|
),
|
||||||
|
{
|
||||||
|
onFailedAttempt: (error) => {
|
||||||
|
core.info(
|
||||||
|
`Failed to create token for "${parsedRepositoryNames.join(
|
||||||
|
","
|
||||||
|
)}" (attempt ${error.attemptNumber}): ${error.message}`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
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, installationId, appSlug } = await pRetry(() => getTokenFromOwner(request, auth, parsedOwner), {
|
({ authentication, installationId, appSlug } = await pRetry(
|
||||||
onFailedAttempt: (error) => {
|
() => getTokenFromOwner(request, auth, parsedOwner),
|
||||||
core.info(
|
{
|
||||||
`Failed to create token for "${parsedOwner}" (attempt ${error.attemptNumber}): ${error.message}`
|
onFailedAttempt: (error) => {
|
||||||
);
|
core.info(
|
||||||
},
|
`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
|
||||||
@@ -111,23 +127,13 @@ export async function main(
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getTokenFromOwner(request, auth, parsedOwner) {
|
async function getTokenFromOwner(request, auth, parsedOwner) {
|
||||||
// https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-organization-installation-for-the-authenticated-app
|
// https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-user-installation-for-the-authenticated-app
|
||||||
const response = await request("GET /orgs/{org}/installation", {
|
// This endpoint works for both users and organizations
|
||||||
org: parsedOwner,
|
const response = await request("GET /users/{username}/installation", {
|
||||||
|
username: parsedOwner,
|
||||||
request: {
|
request: {
|
||||||
hook: auth.hook,
|
hook: auth.hook,
|
||||||
},
|
},
|
||||||
}).catch((error) => {
|
|
||||||
/* c8 ignore next */
|
|
||||||
if (error.status !== 404) throw error;
|
|
||||||
|
|
||||||
// https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-user-installation-for-the-authenticated-app
|
|
||||||
return request("GET /users/{username}/installation", {
|
|
||||||
username: parsedOwner,
|
|
||||||
request: {
|
|
||||||
hook: auth.hook,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Get token for for all repositories of the given installation
|
// Get token for for all repositories of the given installation
|
||||||
@@ -137,12 +143,17 @@ async function getTokenFromOwner(request, auth, parsedOwner) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const installationId = response.data.id;
|
const installationId = response.data.id;
|
||||||
const appSlug = response.data['app_slug'];
|
const appSlug = response.data["app_slug"];
|
||||||
|
|
||||||
return { authentication, installationId, appSlug };
|
return { authentication, installationId, appSlug };
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getTokenFromRepository(request, auth, parsedOwner, parsedRepositoryNames) {
|
async function getTokenFromRepository(
|
||||||
|
request,
|
||||||
|
auth,
|
||||||
|
parsedOwner,
|
||||||
|
parsedRepositoryNames
|
||||||
|
) {
|
||||||
// https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-repository-installation-for-the-authenticated-app
|
// https://docs.github.com/rest/apps/apps?apiVersion=2022-11-28#get-a-repository-installation-for-the-authenticated-app
|
||||||
const response = await request("GET /repos/{owner}/{repo}/installation", {
|
const response = await request("GET /repos/{owner}/{repo}/installation", {
|
||||||
owner: parsedOwner,
|
owner: parsedOwner,
|
||||||
@@ -160,7 +171,7 @@ async function getTokenFromRepository(request, auth, parsedOwner, parsedReposito
|
|||||||
});
|
});
|
||||||
|
|
||||||
const installationId = response.data.id;
|
const installationId = response.data.id;
|
||||||
const appSlug = response.data['app_slug'];
|
const appSlug = response.data["app_slug"];
|
||||||
|
|
||||||
return { authentication, installationId, appSlug };
|
return { authentication, installationId, appSlug };
|
||||||
}
|
}
|
||||||
|
|||||||
1164
package-lock.json
generated
1164
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
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.11.0",
|
"version": "1.11.6",
|
||||||
"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 --packages=bundle",
|
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle",
|
||||||
@@ -12,21 +12,21 @@
|
|||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@octokit/auth-app": "^7.1.1",
|
"@octokit/auth-app": "^7.1.5",
|
||||||
"@octokit/request": "^9.1.3",
|
"@octokit/request": "^9.2.2",
|
||||||
"p-retry": "^6.2.0",
|
"p-retry": "^6.2.1",
|
||||||
"undici": "^6.19.8"
|
"undici": "^7.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sinonjs/fake-timers": "^13.0.1",
|
"@sinonjs/fake-timers": "^14.0.0",
|
||||||
"ava": "^6.1.3",
|
"ava": "^6.2.0",
|
||||||
"c8": "^10.1.2",
|
"c8": "^10.1.3",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.7",
|
||||||
"esbuild": "^0.23.1",
|
"esbuild": "^0.25.0",
|
||||||
"execa": "^9.3.1",
|
"execa": "^9.5.2",
|
||||||
"open-cli": "^8.0.0",
|
"open-cli": "^8.0.0",
|
||||||
"yaml": "^2.5.1"
|
"yaml": "^2.7.0"
|
||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"branches": [
|
"branches": [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { test } from "./main.js";
|
import { test } from "./main.js";
|
||||||
|
|
||||||
// Verify `main` successfully obtains a token when the `owner` input is set (to a user), but the `repositories` input isn’t set.
|
// Verify retries work when getting a token for a user or organization fails on the first attempt.
|
||||||
await test((mockPool) => {
|
await test((mockPool) => {
|
||||||
process.env.INPUT_OWNER = "smockle";
|
process.env.INPUT_OWNER = "smockle";
|
||||||
delete process.env.INPUT_REPOSITORIES;
|
delete process.env.INPUT_REPOSITORIES;
|
||||||
@@ -10,7 +10,7 @@ await test((mockPool) => {
|
|||||||
const mockAppSlug = "github-actions";
|
const mockAppSlug = "github-actions";
|
||||||
mockPool
|
mockPool
|
||||||
.intercept({
|
.intercept({
|
||||||
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
path: `/users/${process.env.INPUT_OWNER}/installation`,
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
accept: "application/vnd.github.v3+json",
|
accept: "application/vnd.github.v3+json",
|
||||||
@@ -18,7 +18,7 @@ await test((mockPool) => {
|
|||||||
// Intentionally omitting the `authorization` header, since JWT creation is not idempotent.
|
// Intentionally omitting the `authorization` header, since JWT creation is not idempotent.
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.reply(404);
|
.reply(500, "GitHub API not available");
|
||||||
mockPool
|
mockPool
|
||||||
.intercept({
|
.intercept({
|
||||||
path: `/users/${process.env.INPUT_OWNER}/installation`,
|
path: `/users/${process.env.INPUT_OWNER}/installation`,
|
||||||
@@ -31,7 +31,7 @@ await test((mockPool) => {
|
|||||||
})
|
})
|
||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
{ id: mockInstallationId, app_slug: mockAppSlug },
|
||||||
{ headers: { "content-type": "application/json" } }
|
{ headers: { "content-type": "application/json" } }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -1,16 +1,16 @@
|
|||||||
import { test } from "./main.js";
|
import { test } from "./main.js";
|
||||||
|
|
||||||
// Verify `main` successfully obtains a token when the `owner` input is set (to an org), but the `repositories` input isn’t set.
|
// Verify `main` successfully obtains a token when the `owner` input is set, and the `repositories` input isn’t set.
|
||||||
await test((mockPool) => {
|
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 and app slug request
|
// Mock installation ID and app slug request
|
||||||
const mockInstallationId = "123456";
|
const mockInstallationId = "123456";
|
||||||
const mockAppSlug = "github-actions";
|
const mockAppSlug = "github-actions";
|
||||||
mockPool
|
mockPool
|
||||||
.intercept({
|
.intercept({
|
||||||
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
path: `/users/${process.env.INPUT_OWNER}/installation`,
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
accept: "application/vnd.github.v3+json",
|
accept: "application/vnd.github.v3+json",
|
||||||
@@ -20,7 +20,7 @@ await test((mockPool) => {
|
|||||||
})
|
})
|
||||||
.reply(
|
.reply(
|
||||||
200,
|
200,
|
||||||
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
{ id: mockInstallationId, app_slug: mockAppSlug },
|
||||||
{ headers: { "content-type": "application/json" } }
|
{ headers: { "content-type": "application/json" } }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
import { test } from "./main.js";
|
|
||||||
|
|
||||||
// Verify `main` successfully obtains a token when the `owner` input is set (to a user), but the `repositories` input isn’t set.
|
|
||||||
await test((mockPool) => {
|
|
||||||
process.env.INPUT_OWNER = "smockle";
|
|
||||||
delete process.env.INPUT_REPOSITORIES;
|
|
||||||
|
|
||||||
// Mock installation ID and app slug request
|
|
||||||
const mockInstallationId = "123456";
|
|
||||||
const mockAppSlug = "github-actions";
|
|
||||||
mockPool
|
|
||||||
.intercept({
|
|
||||||
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
|
||||||
method: "GET",
|
|
||||||
headers: {
|
|
||||||
accept: "application/vnd.github.v3+json",
|
|
||||||
"user-agent": "actions/create-github-app-token",
|
|
||||||
// Intentionally omitting the `authorization` header, since JWT creation is not idempotent.
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.reply(500, "GitHub API not available");
|
|
||||||
mockPool
|
|
||||||
.intercept({
|
|
||||||
path: `/orgs/${process.env.INPUT_OWNER}/installation`,
|
|
||||||
method: "GET",
|
|
||||||
headers: {
|
|
||||||
accept: "application/vnd.github.v3+json",
|
|
||||||
"user-agent": "actions/create-github-app-token",
|
|
||||||
// Intentionally omitting the `authorization` header, since JWT creation is not idempotent.
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.reply(
|
|
||||||
200,
|
|
||||||
{ id: mockInstallationId, "app_slug": mockAppSlug },
|
|
||||||
{ headers: { "content-type": "application/json" } }
|
|
||||||
);
|
|
||||||
});
|
|
||||||
@@ -114,6 +114,26 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
|
## main-token-get-owner-set-fail-response.test.js
|
||||||
|
|
||||||
|
> stderr
|
||||||
|
|
||||||
|
''
|
||||||
|
|
||||||
|
> stdout
|
||||||
|
|
||||||
|
`repositories not set, creating token for all repositories for given owner "smockle"␊
|
||||||
|
Failed to create token for "smockle" (attempt 1): GitHub API not available␊
|
||||||
|
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
␊
|
||||||
|
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
|
␊
|
||||||
|
::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-fail-response.test.js
|
## main-token-get-owner-set-repo-fail-response.test.js
|
||||||
|
|
||||||
> stderr
|
> stderr
|
||||||
@@ -191,7 +211,7 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
::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-repo-unset.test.js
|
||||||
|
|
||||||
> stderr
|
> stderr
|
||||||
|
|
||||||
@@ -210,45 +230,6 @@ Generated by [AVA](https://avajs.dev).
|
|||||||
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
::save-state name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
||||||
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
::save-state name=expiresAt::2016-07-11T22:14:10Z`
|
||||||
|
|
||||||
## main-token-get-owner-set-to-user-fail-response.test.js
|
|
||||||
|
|
||||||
> stderr
|
|
||||||
|
|
||||||
''
|
|
||||||
|
|
||||||
> stdout
|
|
||||||
|
|
||||||
`repositories not set, creating token for all repositories for given owner "smockle"␊
|
|
||||||
Failed to create token for "smockle" (attempt 1): GitHub API not available␊
|
|
||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
|
||||||
::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
|
|
||||||
|
|
||||||
> stderr
|
|
||||||
|
|
||||||
''
|
|
||||||
|
|
||||||
> stdout
|
|
||||||
|
|
||||||
`repositories not set, creating token for all repositories for given owner "smockle"␊
|
|
||||||
::add-mask::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
|
||||||
::set-output name=token::ghs_16C7e42F292c6912E7710c838347Ae178B4a␊
|
|
||||||
␊
|
|
||||||
::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
|
||||||
|
|
||||||
> stderr
|
> stderr
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user