-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated alibi-explain license. * Fixed tox ci bounds to match requirements/dev.txt * Fixed linting issue (type-ignore). * Set pydantic bound < 2.0.0 * Remove macos from CI * Update CHANGELOG in prep for release * Add security to ci * Update contributing.md * Rename depreciated parameter in sklearn * Remove references to open source in README.md --------- Co-authored-by: RobertSamoilescu <robert.samoilescu@gmail.com>
- Loading branch information
1 parent
bf32cbf
commit 7085605
Showing
15 changed files
with
4,590 additions
and
4,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Security Scan | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release/* | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
scan-code: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
pip install .[all] | ||
- name: Create requirements.txt | ||
run: | | ||
# Snyk has issues working with complex setup.py files (e.g. | ||
# https://github.com/snyk/cli/issues/1367). | ||
# To account for this, we set up the environment and then dump it | ||
# into a `requirements.txt` - this env includes both production and | ||
# development dependencies. | ||
# TODO: Once we move into Poetry, this can be replaced for the lock | ||
# file. | ||
pip freeze > requirements.txt | ||
- name: Security Scan | ||
uses: snyk/actions/python-3.10@master | ||
with: | ||
args: --fail-on=upgradable | ||
--severity-threshold=high | ||
--all-projects | ||
--exclude=tests,testing,docs | ||
--sarif-file-output=snyk-code.sarif | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
|
||
static-code-analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Static Code Analysis Scan | ||
uses: snyk/actions/python-3.10@master | ||
with: | ||
command: code test | ||
args: --fail-on=upgradable | ||
--severity-threshold=high | ||
--all-projects | ||
--exclude=tests,testing,docs | ||
--sarif-file-output=snyk-sat.sarif | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.25.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.