From a8028bdc289a862b358fa2cf8a8bac94561fc531 Mon Sep 17 00:00:00 2001 From: moecinnamo Date: Tue, 2 Dec 2025 18:53:05 +0800 Subject: [PATCH] permissions --- .github/workflows/test-and-build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index 6d62f53..d0a1965 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -16,6 +16,10 @@ on: jobs: build: runs-on: self-hosted + permissions: + contents: write + actions: write + pull-requests: write steps: - name: Checkout code uses: actions/checkout@v4 @@ -103,6 +107,6 @@ jobs: prerelease: ${{ github.event.inputs.build_type == 'pre' }} make_latest: ${{ github.event.inputs.build_type != 'pre' }} env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} continue-on-error: true \ No newline at end of file