Skip to content

Commit 367adc6

Browse files
Add Dependabot and hash-pin GHA (#17)
1 parent ddd1611 commit 367adc6

4 files changed

Lines changed: 39 additions & 13 deletions

File tree

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/frontend"
5+
schedule:
6+
interval: "quarterly"
7+
cooldown:
8+
default-days: 7
9+
groups:
10+
# Batch low-risk minor/patch bumps into a single PR to cut review noise;
11+
# major bumps open as individual PRs.
12+
npm-minor-patch:
13+
update-types:
14+
- "minor"
15+
- "patch"
16+
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "quarterly"
21+
cooldown:
22+
default-days: 7
23+
groups:
24+
github-actions:
25+
patterns:
26+
- "*"

.github/workflows/benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242

4343
steps:
4444
- name: Checkout memory tracker
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4646

4747
- name: Set up Python
48-
uses: actions/setup-python@v4
48+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
4949
with:
5050
python-version: '3.11'
5151

@@ -111,7 +111,7 @@ jobs:
111111
112112
- name: Upload benchmark results (if failed)
113113
if: failure()
114-
uses: actions/upload-artifact@v4
114+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
115115
with:
116116
name: benchmark-logs
117117
path: |
@@ -121,7 +121,7 @@ jobs:
121121

122122
- name: Upload benchmark results (on success)
123123
if: success()
124-
uses: actions/upload-artifact@v4
124+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
125125
with:
126126
name: benchmark-results
127127
path: ./benchmark_results/

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
if: github.event_name == 'pull_request'
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1515
with:
1616
fetch-depth: 0
1717
- name: Ensure lockfiles are updated when .in files change
@@ -45,7 +45,7 @@ jobs:
4545
name: Backend tests
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4949
with:
5050
fetch-depth: 0
5151
- name: Check for backend changes
@@ -61,7 +61,7 @@ jobs:
6161
if echo "$CHANGED" | grep -Eq '^(backend/|\.github/workflows/ci\.yml$)'; then
6262
echo "backend=true" >> "$GITHUB_OUTPUT"
6363
fi
64-
- uses: actions/setup-python@v5
64+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
6565
if: steps.changes.outputs.backend == 'true'
6666
with:
6767
python-version: "3.13"
@@ -87,8 +87,8 @@ jobs:
8787
run:
8888
working-directory: frontend
8989
steps:
90-
- uses: actions/checkout@v4
91-
- uses: actions/setup-node@v4
90+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
91+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
9292
with:
9393
node-version: 20
9494
cache: npm

.github/workflows/daily-benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757

5858
steps:
5959
- name: Checkout memory tracker
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
6161

6262
- name: Set up Python
63-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
6464
with:
6565
python-version: '3.11'
6666

@@ -151,7 +151,7 @@ jobs:
151151
152152
- name: Upload benchmark results (if failed)
153153
if: failure()
154-
uses: actions/upload-artifact@v4
154+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
155155
with:
156156
name: benchmark-logs-${{ matrix.build_config.binary_id }}
157157
path: |
@@ -161,7 +161,7 @@ jobs:
161161

162162
- name: Upload benchmark results (on success)
163163
if: success()
164-
uses: actions/upload-artifact@v4
164+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
165165
with:
166166
name: benchmark-results-${{ matrix.build_config.binary_id }}
167167
path: ./benchmark_results/

0 commit comments

Comments
 (0)