Skip to content

Commit 7b0a9ca

Browse files
Merge pull request #8 from tacaswell/harden_gha
CI: Harden GHA configuration
2 parents 011c9ce + 3a2fcc1 commit 7b0a9ca

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of your workflow files
6+
schedule:
7+
interval: "weekly" # Options: daily, weekly, monthly

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v3
28+
with:
29+
persist-credentials: false
2830

2931
- name: Initialize CodeQL
3032
uses: github/codeql-action/init@v2

.github/workflows/pytest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22
name: Validate Python Code
3+
permissions:
4+
contents: read
35

46
on:
57
push:
@@ -21,6 +23,8 @@ jobs:
2123

2224
steps:
2325
- uses: actions/checkout@v3
26+
with:
27+
persist-credentials: false
2428
- name: Set up Python ${{ matrix.python-version }}
2529
uses: actions/setup-python@v3
2630
with:
@@ -65,6 +69,8 @@ jobs:
6569

6670
steps:
6771
- uses: actions/checkout@v3
72+
with:
73+
persist-credentials: false
6874
- name: Set up Python ${{ matrix.python-version }}
6975
uses: actions/setup-python@v3
7076
with:

0 commit comments

Comments
 (0)