Skip to content

Commit

Permalink
feat: try token
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Oct 27, 2023
1 parent e8f6d6f commit f36066b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/update-check.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const { Octokit } = require('@octokit/rest');

const octokit = new Octokit({
//auth: process.env.PERSONAL_ACCESS_TOKEN,
auth: process.env.GITHUB_TOKEN,
//auth: process.env.GITHUB_TOKEN,
auth: process.env.ADDITIONAL_ACCESS_TOKEN,
});

async function createCheck() {
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/external-healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
description: "Check ID"
required: true
type: string
token:
description: "Token used in createCheck"
required: true
type: string

jobs:

Expand Down Expand Up @@ -52,12 +56,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.DEV_HUB_PERSONAL_ACCESS_TOKEN }}
ADDITIONAL_ACCESS_TOKEN: ${{ inputs.token }}
DEV_HUB_BRANCH: ${{ inputs.branch }}
DEV_HUB_REPO: ${{ inputs.repo }}
DEV_HUB_CHECK: ${{ inputs.check }}

trigger-build:
runs-on: ubuntu-latest
needs:
- update-check-run

steps:
- name: Checkout repository
Expand Down

0 comments on commit f36066b

Please sign in to comment.