scan 608 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. ignored=(
  3. # djangorestframework, installed 2.4.8, affected <3.1.1, id 25804
  4. # Description: Escape tab switching cookie name in browsable API.
  5. # Reason: We do not use the browsable API
  6. 25804
  7. # numpy, installed 1.13.1, affected <=1.16.0
  8. # we don't use numpy it is provided by travis though.
  9. 36810
  10. )
  11. # Take additional ignores from argv.
  12. # This enables script re-use in getsentry
  13. if [ $# -ge 1 ]; then
  14. for i in "$@"; do
  15. ignored+=("$i")
  16. done
  17. fi
  18. args="--full-report"
  19. for i in ${ignored[@]}; do
  20. args="$args --ignore=${i}"
  21. done
  22. exec safety check ${args}