Skip to content

Commit

Permalink
chore: 🤖 ignore vulnerability
Browse files Browse the repository at this point in the history
there is no patched version at the moment, so... ignoring to pass the CI
  • Loading branch information
severo committed Dec 20, 2022
1 parent f408dde commit 0087a0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_quality-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: poetry run bandit -r src
- name: Run pip-audit (datasets worker)
if: ${{ inputs.is-datasets-worker == true }}
run: bash -c "poetry run pip-audit --ignore-vuln GHSA-47fc-vmwq-366v -r <(poetry export -f requirements.txt --with dev | sed '/^pymongo==/,+109 d' | sed '/^requests==2.28.1 ;/,+2 d' | sed '/^kenlm @/d' | sed '/^trec-car-tools @/d')"
run: bash -c "poetry run pip-audit --ignore-vuln GHSA-47fc-vmwq-366v --ignore-vuln GHSA-hcpj-qp55-gfph -r <(poetry export -f requirements.txt --with dev | sed '/^pymongo==/,+109 d' | sed '/^requests==2.28.1 ;/,+2 d' | sed '/^kenlm @/d' | sed '/^trec-car-tools @/d')"
- name: Run pip-audit
if: ${{ inputs.is-datasets-worker == false && inputs.is-library-with-pymongo == false }}
run: bash -c "poetry run pip-audit -r <(poetry export -f requirements.txt --with dev | sed '/^pymongo==/,+109 d')"
2 changes: 1 addition & 1 deletion workers/datasets_based/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ run:

.PHONY: pip-audit
pip-audit:
bash -c "poetry run pip-audit --ignore-vuln GHSA-47fc-vmwq-366v -r <(poetry export -f requirements.txt --with dev | sed '/^pymongo==/,+109 d' | sed '/^requests==2.28.1 ;/,+2 d' | sed '/^kenlm @/d' | sed '/^trec-car-tools @/d')"
bash -c "poetry run pip-audit --ignore-vuln GHSA-47fc-vmwq-366v --ignore-vuln GHSA-hcpj-qp55-gfph -r <(poetry export -f requirements.txt --with dev | sed '/^pymongo==/,+109 d' | sed '/^requests==2.28.1 ;/,+2 d' | sed '/^kenlm @/d' | sed '/^trec-car-tools @/d')"
# ^ we remove problematic lines to have a working pip-audit. See https://github.com/pypa/pip-audit/issues/84#issuecomment-1326203111 for "requests"
# ^ we also ignore GHSA-47fc-vmwq-366v vulnerability because it has no fix for the moment

0 comments on commit 0087a0f

Please sign in to comment.