Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,27 @@ jobs:
run: pylinkvalidate.py -P http://localhost:8000/

- run: echo "Done"

codeql:
name: CodeQL Security Scan
runs-on: ubuntu-latest

permissions:
security-events: write
contents: read

Comment on lines +83 to +86
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This job requests security-events: write, which GitHub does not grant to workflows triggered from forked PRs. Since the workflow runs on pull_request, this job is likely to fail for external contributors. Consider guarding the job/steps to skip on forks, or run CodeQL only on push/schedule (or use pull_request_target with appropriate hardening).

Copilot uses AI. Check for mistakes.
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
queries: security-and-quality

# For Python, no build or dependencies are required
# CodeQL analyzes the source code directly

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Loading