Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rekyyang committed May 24, 2024
1 parent 2a2502b commit ddc2b4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ on:

jobs:
main:
secrets: inherit
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GO_MODULES_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
types: |
feat
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ permissions:
# pull-requests: read
jobs:
golangci:
secrets: inherit
name: golangci-lint
strategy:
matrix:
Expand All @@ -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:
Expand All @@ -58,4 +57,4 @@ jobs:
version: latest
skip-pkg-cache: true
args: --timeout=99m
github-token: ${{ secrets.github_token }}
github-token: ${{ secrets.GH_TOKEN }}

0 comments on commit ddc2b4a

Please sign in to comment.