Skip to content

Commit

Permalink
limit ci to checking files that are changed in a PR/commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Jul 11, 2024
1 parent c747fdf commit 379c279
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
permissions:
contents: read
pull-requests: read # Remove along with only-new-issues by 2025
jobs:
golangci:
name: lint
Expand All @@ -24,4 +25,6 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: --whole-files # Remove alogn with only-new-issues by 2025
version: ${{ steps.golangcilint.outputs.version }}
only-new-issues: true # Remove along with pull-requests: read permission by 2025

0 comments on commit 379c279

Please sign in to comment.