Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only-new-issues does not seem to work on my setup #531

Closed
EtienneM opened this issue Aug 3, 2022 · 1 comment · Fixed by #1029
Closed

only-new-issues does not seem to work on my setup #531

EtienneM opened this issue Aug 3, 2022 · 1 comment · Fixed by #1029
Labels
question Further information is requested

Comments

@EtienneM
Copy link

EtienneM commented Aug 3, 2022

When I execute my GitHub Action workflow, all offenses are shown and not only the new ones.

It might be related to the content of this PR: #520

My GitHub Action configuration file looks like:

on:
  push:

permissions:
  contents: read
  # allow read access to pull request. Use with `only-new-issues` option.
  pull-requests: read

jobs:
  linter:
    name: golangci-lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-go@v3
        with:
          go-version-file: "go.mod"
          check-latest: true
      - uses: golangci/golangci-lint-action@v3
        with:
          only-new-issues: true
@ldez
Copy link
Member

ldez commented Apr 27, 2024

only-new-issues only works with PR, because it uses the generated GitHub patch for a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
2 participants