This repository was archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
47 lines (40 loc) · 1.25 KB
/
action.yml
File metadata and controls
47 lines (40 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Run GitHub Advanced Security API to CSV
on:
push:
branches:
- main # Trigger the workflow on pushes to the main branch
pull_request:
branches:
- main # Trigger the workflow on pull requests to the main branch
schedule:
- cron: '0 0 * * *' # Schedule the workflow to run daily at midnight
jobs:
run-security-report:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify the Python version to use
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run security report script
run: python main.py
- name: Upload CSV reports
uses: actions/upload-artifact@v2
with:
name: security-reports
path: |
enterprise_secret_scanning.csv
enterprise_code_scanning.csv
enterprise_dependabot.csv
organization_code_scanning.csv
organization_dependabot.csv
organization_secret_scanning.csv
repository_code_scanning.csv
repository_dependabot.csv
repository_secret_scanning.csv