mirror of
https://github.com/K-Dense-AI/scientific-agent-skills.git
synced 2026-12-04 01:24:00 +08:00
Removed unnecessary entries from .gitignore and added environment variable to the security scan workflow for improved compatibility with Node.js 24.
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Weekly Security Scan
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 9 * * 1" # Every Monday at 09:00 UTC
|
|
workflow_dispatch: # Allow manual trigger
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
|
|
jobs:
|
|
scan:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 120
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
cache-dependency-glob: uv.lock
|
|
|
|
- name: Install dependencies
|
|
run: uv sync
|
|
|
|
- name: Run security scan
|
|
env:
|
|
SKILL_SCANNER_LLM_API_KEY: ${{ secrets.SKILL_SCANNER_LLM_API_KEY }}
|
|
SKILL_SCANNER_LLM_MODEL: ${{ vars.SKILL_SCANNER_LLM_MODEL || 'claude-sonnet-4-6' }}
|
|
run: uv run python scan_skills.py
|
|
|
|
- name: Commit updated SECURITY.md
|
|
run: |
|
|
git diff --quiet SECURITY.md && exit 0
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add SECURITY.md
|
|
git commit -m "chore: update security scan report [skip ci]"
|
|
git push
|