-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Unify lint CI job #7505
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
Unify lint CI job #7505
Changes from 1 commit
0c9f3e5
72fd632
149cc38
e09cf9e
15b06c2
59a7d2c
b39ab51
2f12793
c7be0d6
4c3b303
3adf498
855eca1
15bdf1f
cefe51f
ae898da
88028e6
0d52e5e
eefe093
b2ba0c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -333,8 +333,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| # checks: write | ||
| # issues: write | ||
| checks: write | ||
| pull-requests: write | ||
| security-events: write # for zizmor | ||
|
Comment on lines
+334
to
+338
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's find and examine the workflow file
find . -name "ci.yaml" -o -name "ci.yml" | head -20Repository: RustPython/RustPython Length of output: 92 🌐 Web query:
💡 Result: The reviewdog/action-suggester GitHub Action requires the following permissions in your workflow YAML: permissions: contents: read checks: write issues: write pull-requests: write These are specified in the official README to enable posting code suggestions via GitHub's multi-line suggestions feature on pull requests. See GitHub docs on Assigning permissions to jobs for details. The action supports pull_request events primarily. Citations: 🏁 Script executed: # Read the workflow file around the mentioned lines
fd "ci.yaml" --type f --exec wc -l {} \; 2>/dev/null | head -5Repository: RustPython/RustPython Length of output: 47 🏁 Script executed: # Read the workflow file to check permissions and action usage
cat -n .github/workflows/ci.yaml | sed -n '320,400p'Repository: RustPython/RustPython Length of output: 3245 🏁 Script executed: # Also check the workflow triggers at the top
cat -n .github/workflows/ci.yaml | head -20Repository: RustPython/RustPython Length of output: 915 Add missing The action's documentation specifies it requires Suggested fix permissions:
contents: read
checks: write
+ issues: write
pull-requests: write
security-events: write # for zizmor - name: reviewdog
- if: failure()
+ if: failure() && github.event_name == 'pull_request'
uses: reviewdog/action-suggester@aa38384ceb608d00f84b4690cacc83a5aba307ff # 1.24.0🤖 Prompt for AI Agents |
||
| steps: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore the
skip:ciguard onlintif that label is still meant to suppress the whole workflow.Every other job in this workflow still short-circuits on
skip:ci, but the unified lint job no longer does. Applying that label will therefore still run this path.♻️ Suggested fix
lint: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }} name: Lint🤖 Prompt for AI Agents