Prevent rate limite in CI by authenticating

This commit is contained in:
garronej 2022-06-01 05:51:33 +02:00
parent 6b57b1c720
commit 9bdb224631
2 changed files with 2 additions and 7 deletions

View File

@ -25,6 +25,8 @@ jobs:
test:
runs-on: macos-10.15
needs: test_formatting
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
node: [ '15', '14' ]

View File

@ -1,7 +0,0 @@
import { Octokit } from "@octokit/rest";
export function createOctokit(params: { github_token: string }) {
const { github_token } = params;
return new Octokit({ ...(github_token !== "" ? { "auth": github_token } : {}) });
}