PSRT GHSA Bot #14983
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "PSRT GHSA Bot" | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 * * * *" | |
| jobs: | |
| cron: | |
| runs-on: ubuntu-latest | |
| name: "Run PSRT Advisory Bot" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: Install dependencies | |
| run: uv sync --locked --no-editable --no-dev | |
| - name: Run bot | |
| run: uv run python src/psrt_ghsa_bot/app.py | |
| env: | |
| GH_CLIENT_ID: ${{ vars.GH_CLIENT_ID }} | |
| GH_CLIENT_SECRET: ${{ secrets.GH_CLIENT_SECRET }} | |
| GH_CLIENT_PRIVATE_KEY: ${{ secrets.GH_CLIENT_PRIVATE_KEY }} | |
| CVE_USERNAME: ${{ vars.CVE_USERNAME }} | |
| CVE_API_KEY: ${{ secrets.CVE_API_KEY }} | |
| CVE_ENV: ${{ vars.CVE_ENV }} |