fix: authenticate action requests to github api (#78)

* fix: only test on latest

Should help with GitHub API rate limiting

* Update .github/workflows/test.yml

* fix: add github token to workflow

* fix: authenticate with github api

* chore: remove token env

* chore: update dist files

* Revert "chore: remove token env"

This reverts commit 913c7a8e6f.

* chore: use gh token env var

* chore: update user agent string

* chore: organize imports

Co-authored-by: Han Qiao <qiao@supabase.io>
This commit is contained in:
Bobbie Soedirgo
2022-10-19 16:36:59 +08:00
committed by GitHub
parent babc75a12d
commit b5dccf414b
5 changed files with 22 additions and 30 deletions

View File

@@ -13,6 +13,9 @@ defaults:
run:
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
e2e: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
@@ -20,7 +23,6 @@ jobs:
matrix:
version:
- 1.0.0
- 1.5.4
- latest
steps:
- uses: actions/checkout@v3

View File

@@ -9,6 +9,9 @@ defaults:
run:
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
@@ -21,7 +24,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
version: [1.0.0, 1.5.4, latest]
version: [1.0.0, latest]
steps:
- uses: actions/checkout@v3
- uses: ./