Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/ai-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-fix-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
analyze-and-fix:
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_call' && inputs.alert_count > 0)

Check warning on line 26 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

26:81 [line-length] line too long (116 > 80 characters)

steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand Down Expand Up @@ -57,7 +57,7 @@
uv venv

# Install only the linting/formatting tools needed for auto-fixing
# We don't sync the full project to avoid platform-specific deps like triton-windows (Windows-only)

Check warning on line 60 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

60:81 [line-length] line too long (107 > 80 characters)
uv pip install autoflake isort ruff

- name: Fetch CodeQL alerts
Expand All @@ -73,7 +73,7 @@

# Get alert details
gh api repos/${{ github.repository }}/code-scanning/alerts \
--jq '.[] | select(.state == "open") | {severity: .rule.severity, rule: .rule.description}' \

Check warning on line 76 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

76:81 [line-length] line too long (103 > 80 characters)
> alerts.json || echo "[]" > alerts.json
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -88,7 +88,7 @@

# 1. Remove unused imports with autoflake
echo "→ Removing unused imports..."
if uv run autoflake --remove-all-unused-imports --in-place --recursive src/ test/ scripts/; then

Check warning on line 91 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

91:81 [line-length] line too long (104 > 80 characters)
if ! git diff --quiet; then
CHANGES_MADE=true
echo " ✓ Removed unused imports"
Expand All @@ -106,7 +106,7 @@

# 3. Apply ruff fixes (safe auto-fixes only)
echo "→ Applying ruff auto-fixes..."
if uv run ruff check src/ test/ scripts/ --fix --unsafe-fixes=false; then

Check warning on line 109 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

109:81 [line-length] line too long (81 > 80 characters)
if ! git diff --quiet; then
CHANGES_MADE=true
echo " ✓ Applied ruff fixes"
Expand All @@ -132,24 +132,24 @@

echo "## 🔒 Security Auto-Fix Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Alerts Found:** $ALERT_COUNT open issues" >> $GITHUB_STEP_SUMMARY

Check warning on line 135 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

135:81 [line-length] line too long (81 > 80 characters)
echo "**Changes Applied:** $CHANGES_MADE" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY

if [ "$CHANGES_MADE" = "true" ]; then
echo "### ✅ Automatic Fixes Applied" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "The following automated fixes were applied:" >> $GITHUB_STEP_SUMMARY

Check warning on line 142 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

142:81 [line-length] line too long (84 > 80 characters)
echo "- Removed unused imports (autoflake)" >> $GITHUB_STEP_SUMMARY
echo "- Sorted imports (isort)" >> $GITHUB_STEP_SUMMARY
echo "- Applied safe code fixes (ruff)" >> $GITHUB_STEP_SUMMARY
echo "- Formatted code (ruff format)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "A pull request will be created with these changes." >> $GITHUB_STEP_SUMMARY

Check warning on line 148 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

148:81 [line-length] line too long (91 > 80 characters)
else
echo "### ℹ️ No Automatic Fixes Available" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "The security alerts require manual review and fixes." >> $GITHUB_STEP_SUMMARY

Check warning on line 152 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

152:81 [line-length] line too long (93 > 80 characters)
fi

- name: Create Pull Request
Expand Down Expand Up @@ -182,7 +182,7 @@
- ✅ Formatted code (ruff format)

### CodeQL Alerts
Found **${{ steps.fetch-alerts.outputs.alert_count }}** open alerts that triggered this auto-fix workflow.

Check warning on line 185 in .github/workflows/auto-fix-security.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

185:81 [line-length] line too long (116 > 80 characters)

### Review Checklist
- [ ] All CI checks pass
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
python-version: ['3.11', '3.12']
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
uv run pytest test/ -v --cov=src/astro_lab --cov-report=xml --cov-report=term-missing

- name: Upload coverage reports
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
if: matrix.python-version == '3.11'
with:
files: ./coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/data-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Fetch Dependabot metadata
id: meta
uses: dependabot/fetch-metadata@v2
uses: dependabot/fetch-metadata@v3
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0 # Full history for git operations

Expand All @@ -51,19 +51,19 @@
key: ${{ runner.os }}-uv-docs-${{ hashFiles('**/uv.lock') }}
restore-keys: |
${{ runner.os }}-uv-docs-

Check failure on line 54 in .github/workflows/docs.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

54:1 [trailing-spaces] trailing spaces
- name: Install dependencies
run: |
uv sync --frozen

Check failure on line 58 in .github/workflows/docs.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

58:1 [trailing-spaces] trailing spaces
- name: Generate API documentation
run: |
uv run python docs/generate_docs.py update

Check failure on line 62 in .github/workflows/docs.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

62:1 [trailing-spaces] trailing spaces
- name: Build documentation
run: |
uv run mkdocs build --clean

Check failure on line 66 in .github/workflows/docs.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

66:1 [trailing-spaces] trailing spaces
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
Expand All @@ -74,7 +74,7 @@
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'docs: auto-generate and deploy documentation'

Check failure on line 77 in .github/workflows/docs.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

77:1 [trailing-spaces] trailing spaces
- name: Create deployment summary
if: always()
run: |
Expand All @@ -96,3 +96,3 @@
echo "- 📖 Available at: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/" >> $GITHUB_STEP_SUMMARY
else
echo "- ℹ️ Documentation built but not deployed (not on main branch)" >> $GITHUB_STEP_SUMMARY
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
timeout-minutes: 15

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
image: semgrep/semgrep
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Run Semgrep
run: semgrep ci --sarif --output=semgrep-results.sarif
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
Expand All @@ -94,10 +94,10 @@ jobs:
if: github.event_name == 'pull_request'
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Dependency Review
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@v5
with:
fail-on-severity: high
allow-licenses: >-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/train-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Download actionlint
id: get_actionlint
Expand All @@ -36,7 +36,7 @@
run: |
echo "## Workflow Validation Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY

Check failure on line 39 in .github/workflows/validate-workflows.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

39:1 [trailing-spaces] trailing spaces
# Run actionlint on all workflows
if actionlint -verbose .github/workflows/*.yml 2>&1 | tee /tmp/actionlint.log; then
echo "✅ All workflows are valid!" >> $GITHUB_STEP_SUMMARY
Expand All @@ -56,7 +56,7 @@
pip install yamllint
echo "" >> $GITHUB_STEP_SUMMARY
echo "### YAML Syntax Check" >> $GITHUB_STEP_SUMMARY

Check failure on line 59 in .github/workflows/validate-workflows.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions Workflows

59:1 [trailing-spaces] trailing spaces
if yamllint -d relaxed .github/workflows/ 2>&1 | tee /tmp/yamllint.log; then
echo "✅ YAML syntax is valid" >> $GITHUB_STEP_SUMMARY
else
Expand Down
Loading