Skip to content

Commit c51a640

Browse files
chore: add security scanning and dev dependencies configuration
1 parent b6c901e commit c51a640

File tree

5 files changed

+123
-0
lines changed

5 files changed

+123
-0
lines changed

.github/workflows/semgrep.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Semgrep
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
push:
10+
branches:
11+
- main
12+
schedule:
13+
- cron: "30 0 1,15 * *"
14+
15+
permissions:
16+
contents: read
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
21+
22+
jobs:
23+
run:
24+
name: Check for Vulnerabilities
25+
runs-on: ubuntu-latest
26+
27+
container:
28+
image: returntocorp/semgrep
29+
30+
steps:
31+
- if: github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
32+
run: exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
33+
34+
- uses: actions/checkout@v4
35+
with:
36+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
37+
38+
- run: semgrep ci
39+
env:
40+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}

.github/workflows/snyk.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Snyk
2+
3+
on:
4+
merge_group:
5+
workflow_dispatch:
6+
pull_request:
7+
types:
8+
- opened
9+
- synchronize
10+
push:
11+
branches:
12+
- main
13+
schedule:
14+
- cron: '30 0 1,15 * *'
15+
16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
21+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
22+
23+
jobs:
24+
25+
check:
26+
27+
name: Check for Vulnerabilities
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- if: github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
32+
run: exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
33+
34+
- uses: actions/checkout@v4
35+
with:
36+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
37+
38+
- uses: snyk/actions/python@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0
39+
env:
40+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

packages/auth0_api_python/.snyk

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.12.0
3+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
4+
ignore:
5+
SNYK-PYTHON-REQUESTS-72435:
6+
- '*':
7+
reason: 'unaffected, only affects https->http authorization header redirection.'
8+
expires: 2019-11-05T00:00:00.000Z
9+
SNYK-PYTHON-REQUESTS-40470:
10+
- '*':
11+
reason: 'patched in latest python versions: https://bugs.python.org/issue27568'
12+
"snyk:lic:pip:certifi:MPL-2.0":
13+
- '*':
14+
reason: "Accepting certifi’s MPL-2.0 license for now"
15+
expires: "2030-12-31T23:59:59Z"
16+
"snyk:lic:pip:jwcrypto:LGPL-3.0":
17+
- '*':
18+
reason: "Accepting jwcrypto’s LGPL-3.0 license for now"
19+
expires: "2030-12-31T23:59:59Z"
20+
patch: {}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pytest>=8.0,<9.0
2+
pytest-cov>=4.0,<5.0
3+
pytest-asyncio>=0.20.3,<1.0
4+
pytest-mock>=3.14.0,<4.0
5+
pytest-httpx>=0.35.0,<1.0
6+
ruff>=0.1.0,<1.0
7+
twine>=6.1.0,<7.0
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
authlib>=1.0,<2.0
2+
requests>=2.31.0,<3.0
3+
httpx>=0.28.1,<1.0
4+
ada-url>=1.25.0,<2.0
5+
certifi>=2025.1.31
6+
cryptography>=43.0.3
7+
idna>=3.10
8+
sniffio>=1.3.1
9+
h11>=0.14.0
10+
httpcore>=1.0.7
11+
anyio>=4.9.0
12+
charset-normalizer>=3.4.1
13+
urllib3>=2.3.0
14+
rfc3986>=2.0.0
15+
cffi>=1.17.1
16+
pycparser>=2.220

0 commit comments

Comments
 (0)