From ddc2b4adbc5f67be14632cca319686c523385a38 Mon Sep 17 00:00:00 2001 From: rekyyang <511965710@qq.com> Date: Fri, 24 May 2024 15:21:53 +0800 Subject: [PATCH] fix: workflow --- .github/workflows/lint-pr.yml | 3 +-- .github/workflows/lint.yml | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 8ba216d..e01bb04 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -9,12 +9,11 @@ on: jobs: main: - secrets: inherit runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v4.5.0 env: - GITHUB_TOKEN: ${{ secrets.GO_MODULES_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} with: types: | feat diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c451b6d..9b11721 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,6 @@ permissions: # pull-requests: read jobs: golangci: - secrets: inherit name: golangci-lint strategy: matrix: @@ -31,7 +30,7 @@ jobs: - uses: actions/checkout@v3 - run: export GOPRIVATE="github.com/node-real/*" - - run: git config --global url."https://${{ secrets.GITHUB_TOKEN }}@github.com".insteadOf "https://github.com" + - run: git config --global url."https://${{ secrets.GH_TOKEN }}@github.com".insteadOf "https://github.com" - uses: actions/cache@v3 with: @@ -58,4 +57,4 @@ jobs: version: latest skip-pkg-cache: true args: --timeout=99m - github-token: ${{ secrets.github_token }} + github-token: ${{ secrets.GH_TOKEN }}