diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16a4634..be7a0d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,8 @@ name: ci on: [push, pull_request] +permissions: + actions: read + contents: read concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true @@ -17,7 +20,7 @@ jobs: ${{ runner.os }}-yarn- - run: COLOR=1 ./make.sh env: - GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} DOCUSAURUS_IGNORE_SSG_WARNINGS: true nofixups: @@ -27,7 +30,7 @@ jobs: - run: git submodule update --init - run: COLOR=1 ./ci/sub/bin/nofixups.sh env: - GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} spell-check: runs-on: ubuntu-latest diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 59292d4..f6768f7 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -3,6 +3,9 @@ on: workflow_dispatch: schedule: - cron: '42 0 * * *' # daily at 00:42 +permissions: + actions: read + contents: read concurrency: group: ${{ github.workflow }} cancel-in-progress: true @@ -20,5 +23,5 @@ jobs: ${{ runner.os }}-yarn- - run: COLOR=1 CI_FORCE=1 ./make.sh env: - GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}