Skip to content

Commit 3efddd1

Browse files
authored
Hash-pin action usages, minimize CI/CD permissions (#309)
Signed-off-by: William Woodruff <william@yossarian.net>
1 parent 75c7c35 commit 3efddd1

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
cooldown:
5+
default-days: 7
6+
directory: /
7+
schedule:
8+
interval: weekly
9+
groups:
10+
github-actions:
11+
patterns:
12+
- "*"

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ env:
1212
PIP_VERBOSE: true
1313
PYMSBUILD_VERBOSE: true
1414

15+
permissions: {}
1516

1617
jobs:
1718
build:
1819
runs-on: windows-latest
1920

2021
steps:
21-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
23+
with:
24+
persist-credentials: false
2225

2326
- name: 'Remove existing PyManager install'
2427
run: |
@@ -38,7 +41,7 @@ jobs:
3841
# We move faster than GitHub's Python runtimes, so use NuGet instead
3942
# One day we can use ourselves to download Python, but not yet...
4043
- name: Set up NuGet
41-
uses: nuget/setup-nuget@v2.0.1
44+
uses: nuget/setup-nuget@323ab0502cd38fdc493335025a96c8fdb0edc71f # v2.0.1
4245

4346
- name: Set up Python 3.14.3
4447
run: |
@@ -74,7 +77,7 @@ jobs:
7477
--cov-report xml
7578
7679
- name: 'Upload coverage'
77-
uses: codecov/codecov-action@v5
80+
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.5.4
7881
with:
7982
token: ${{ secrets.CODECOV_ORG_TOKEN }}
8083

0 commit comments

Comments
 (0)