1
0
mirror of https://github.com/golangci/golangci-lint-action.git synced 2026-06-18 01:05:47 +07:00

chore: improve workflows

This commit is contained in:
Fernandez Ludovic
2026-05-06 05:05:55 +02:00
parent 03b1faa37e
commit c9500d7aa7
3 changed files with 17 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ jobs:
# a pull request then we can checkout the head of the pull request.
# Only include this option if you are running this workflow on pull requests.
fetch-depth: 2
persist-credentials: false
# If this run was triggered by a pull request event then checkout
# the head of the pull request instead of the merge commit.

View File

@@ -20,6 +20,8 @@ jobs:
with:
node-version: 24.x
- uses: actions/checkout@v6
with:
persist-credentials: false
- run: |
npm install
npm run all
@@ -48,6 +50,8 @@ jobs:
pull-requests: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: 24.x
@@ -81,6 +85,8 @@ jobs:
pull-requests: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: 24.x
@@ -111,6 +117,8 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: 24.x
@@ -143,6 +151,8 @@ jobs:
pull-requests: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: 24.x
@@ -170,6 +180,8 @@ jobs:
pull-requests: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: 24.x