Skip to content

Commit 0eefef6

Browse files
committed
Pinned actions to specific SHAs
1 parent eb6f57e commit 0eefef6

3 files changed

Lines changed: 20 additions & 10 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ updates:
99
directory: "/user-auth/graphtutorial" # Location of package manifests
1010
schedule:
1111
interval: "weekly"
12+
cooldown:
13+
default-days: 7
1214
- package-ecosystem: "npm"
1315
directory: "/app-auth/graphapponlytutorial" # Location of package manifests
1416
schedule:
1517
interval: "weekly"
18+
cooldown:
19+
default-days: 7
20+
- package-ecosystem: "github-actions"
21+
directory: "/" # Location of GitHub Actions workflows
22+
schedule:
23+
interval: "weekly"
24+
cooldown:
25+
default-days: 7

‎.github/workflows/auto-merge-dependabot.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Auto-merge dependabot updates
33
on:
44
pull_request:
55
branches: [ main ]
6-
6+
77
permissions:
88
pull-requests: write
99
contents: write
@@ -13,16 +13,16 @@ jobs:
1313
dependabot-merge:
1414

1515
runs-on: ubuntu-latest
16-
16+
1717
if: ${{ github.actor == 'dependabot[bot]' }}
1818

1919
steps:
2020
- name: Dependabot metadata
2121
id: metadata
22-
uses: dependabot/fetch-metadata@v1.1.1
22+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
2323
with:
2424
github-token: "${{ secrets.GITHUB_TOKEN }}"
25-
25+
2626
- name: Enable auto-merge for Dependabot PRs
2727
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
2828
run: gh pr merge --auto --merge "$PR_URL"

‎.github/workflows/nodejs.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [ 20.x, 22.x, 24.x ]
20+
node-version: [ 22.x, 24.x ]
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2424
- name: Copy settings file
2525
run: |
2626
cp appSettings.example.js appSettings.js
2727
- name: Setup Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v1
28+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
- name: Install dependencies
@@ -42,15 +42,15 @@ jobs:
4242

4343
strategy:
4444
matrix:
45-
node-version: [ 20.x, 22.x, 24.x ]
45+
node-version: [ 22.x, 24.x ]
4646

4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4949
- name: Copy settings file
5050
run: |
5151
cp appSettings.example.js appSettings.js
5252
- name: Setup Node.js ${{ matrix.node-version }}
53-
uses: actions/setup-node@v1
53+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
5454
with:
5555
node-version: ${{ matrix.node-version }}
5656
- name: Install dependencies

0 commit comments

Comments
 (0)