Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkiros committed Oct 18, 2024
1 parent 4b5ea9d commit b5a9f5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/retrieve_cve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pull latest changes
run: git pull

- name: Retrieve CWE
run: python cve2cwe.py

Expand Down Expand Up @@ -87,6 +90,9 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pull latest changes
run: git pull

- name: Retrieve CAPEC
run: python cwe2capec.py

Expand Down Expand Up @@ -118,6 +124,9 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pull latest changes
run: git pull

- name: Retrieve TECHNIQUES
run: python capec2technique.py

Expand All @@ -128,7 +137,7 @@ jobs:
git diff --quiet && git diff --staged --quiet || git add results/new_cves.jsonl
git diff --quiet && git diff --staged --quiet || git add lastUpdate.txt
git diff --quiet && git diff --staged --quiet || git add database/*.jsonl
git diff --staged --quiet || git commit -m "Retrieve TECHNIQUES from new CVEs's CAPEC and update CVE DB"
git diff --staged --quiet || git commit -m "Retrieve new CVEs's and update CVE DB"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pull latest changes
run: git pull

- name: Update CWE DB
run: python update_cwe_db.py

Expand Down

0 comments on commit b5a9f5e

Please sign in to comment.