From 8e3c4afb843371da71e10448b4d016ba38a81115 Mon Sep 17 00:00:00 2001 From: chaxus Date: Sat, 15 Nov 2025 14:01:47 +0800 Subject: [PATCH] chore: update GitHub Actions workflows by removing unused environment settings and adjusting permissions for pull requests --- .github/workflows/pages-build-site.yml | 3 --- .github/workflows/semantic-pull-request.yml | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages-build-site.yml b/.github/workflows/pages-build-site.yml index f67552c..5381e19 100644 --- a/.github/workflows/pages-build-site.yml +++ b/.github/workflows/pages-build-site.yml @@ -16,9 +16,6 @@ concurrency: jobs: deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index 225f132..224f5df 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -7,6 +7,10 @@ on: - edited - synchronize +permissions: + pull-requests: read + contents: read + jobs: main: if: github.repository == 'ranuts/document' @@ -16,4 +20,4 @@ jobs: - name: Validate PR title uses: amannn/action-semantic-pull-request@v6 env: - GITHUB_TOKEN: ${{ secrets.WEREAD_DEPLOY_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}