diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d94ca449c..4f2aeae3c7 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 @@ -15,7 +18,7 @@ jobs: cache: true - run: COLOR=1 ./make.sh env: - GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} - uses: actions/upload-artifact@v4 if: always() @@ -29,7 +32,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 }} signed: runs-on: ubuntu-latest @@ -38,5 +41,5 @@ jobs: - run: git submodule update --init - run: COLOR=1 ./ci/sub/bin/ensure_signed.sh env: - GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index e2a874310e..40ee20244f 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -2,6 +2,9 @@ name: daily on: workflow_dispatch: # Keep daily CI available for manual verification while scheduled runs are paused. +permissions: + actions: read + contents: read concurrency: group: ${{ github.workflow }} cancel-in-progress: true @@ -17,7 +20,7 @@ jobs: cache: true - run: COLOR=1 CI_FORCE=1 ./make.sh all race env: - GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} - uses: actions/upload-artifact@v4 if: always()