Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc256c234b | ||
|
|
04f8ace9a0 | ||
|
|
4fd0ce7c29 |
9
.github/dependabot.yml
vendored
9
.github/dependabot.yml
vendored
@@ -4,6 +4,15 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "monthly"
|
interval: "monthly"
|
||||||
|
groups:
|
||||||
|
production-dependencies:
|
||||||
|
dependency-type: "production"
|
||||||
|
development-dependencies:
|
||||||
|
dependency-type: "development"
|
||||||
|
commit-message:
|
||||||
|
prefix: "fix"
|
||||||
|
prefix-development: "build"
|
||||||
|
include: "scope"
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
|
|||||||
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@@ -1,5 +1,10 @@
|
|||||||
name: test
|
name: test
|
||||||
on: [push]
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -13,14 +18,14 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- uses: ./ # Uses the action in the root directory
|
- uses: ./ # Uses the action in the root directory
|
||||||
id: demo
|
id: test
|
||||||
with:
|
with:
|
||||||
app_id: ${{ vars.TEST_APP_ID }}
|
app_id: ${{ vars.TEST_APP_ID }}
|
||||||
private_key: ${{ secrets.TEST_APP_PRIVATE_KEY }}
|
private_key: ${{ secrets.TEST_APP_PRIVATE_KEY }}
|
||||||
- uses: octokit/request-action@v2.x
|
- uses: octokit/request-action@v2.x
|
||||||
id: get-repository
|
id: get-repository
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.demo.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.test.outputs.token }}
|
||||||
with:
|
with:
|
||||||
route: GET /installation/repositories
|
route: GET /installation/repositories
|
||||||
- run: echo '${{ steps.get-repository.outputs.data }}'
|
- run: echo '${{ steps.get-repository.outputs.data }}'
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ export async function main(
|
|||||||
repositoryNames: [repo],
|
repositoryNames: [repo],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Register the token with the runner as a secret to ensure it is masked in logs
|
||||||
|
core.setSecret(authentication.token);
|
||||||
|
|
||||||
core.setOutput("token", authentication.token);
|
core.setOutput("token", authentication.token);
|
||||||
|
|
||||||
// Make token accessible to post function (so we can invalidate it)
|
// Make token accessible to post function (so we can invalidate it)
|
||||||
|
|||||||
Reference in New Issue
Block a user