Skip to content

Export Dependabot Alerts #5

Export Dependabot Alerts

Export Dependabot Alerts #5

name: Export Dependabot Alerts
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
export-alerts:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Export Dependabot alerts
env:
CODEQL_TOKEN: ${{ secrets.CODEQL_TOKEN }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
# python ./Matching_scripts/export_dependabot_alerts.py
python ./Matching_scripts/custom_export_dependabot.py
- name: Upload dependabot alerts
uses: actions/upload-artifact@v2
with:
name: dependabot_alerts
path: dependabot_vulnerabilities.json
# path: dependabot_alerts.json