Skip to content

Commit d80f239

Browse files
committed
Add reusable security checks
1 parent c4f93f9 commit d80f239

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Public Repository Security
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: "43 5 * * 1"
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
public-security:
16+
uses: QuantJourneyOrg/.github/.github/workflows/public-python-security.yml@main
17+
with:
18+
python-version: "3.11"
19+
install-command: python -m pip install -e '.[dev]'
20+
test-command: pytest -q

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

@@ -30,4 +30,3 @@ jobs:
3030
- name: Run tests with pytest
3131
run: |
3232
pytest -v tests/
33-

0 commit comments

Comments
 (0)