Skip to content

Commit 3bd65bf

Browse files
authored
Merge pull request #131 from danfiedler-msft/danfiedler/pin-actions
Pin GitHub Actions to full-length commit SHAs
2 parents 73e7122 + 3721975 commit 3bd65bf

24 files changed

Lines changed: 9261 additions & 33150 deletions

File tree

‎.github/dependabot.yml‎

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

‎.github/workflows/build.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,49 +18,49 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
node-version: [16.x, 18.x]
21+
node-version: [20.x, 22.x]
2222
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

3131
- run: |
3232
cd Common/msal-node-wrapper
3333
npm ci
34-
npm audit --production
34+
npm audit --omit=dev
3535
npm run build --if-present
3636
npm run test
3737
3838
- run: |
3939
cd 1-Authentication/1-sign-in/App
4040
npm install
41-
npm audit --production
41+
npm audit --omit=dev
4242
npm run test
4343
4444
- run: |
4545
cd 1-Authentication/2-sign-in-b2c/App
4646
npm install
47-
npm audit --production
47+
npm audit --omit=dev
4848
npm run test
4949
5050
- run: |
5151
cd 2-Authorization/1-call-graph/App
5252
npm install
53-
npm audit --production
53+
npm audit --omit=dev
5454
npm run test
5555
5656
- run: |
5757
cd 4-AccessControl/1-app-roles/App
5858
npm install
59-
npm audit --production
59+
npm audit --omit=dev
6060
npm run test
6161
6262
- run: |
6363
cd 4-AccessControl/2-security-groups/App
6464
npm install
65-
npm audit --production
65+
npm audit --omit=dev
6666
npm run test

‎.github/workflows/codeql.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141

4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4545

4646
# Initializes the CodeQL tools for scanning.
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v2
48+
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
4949
with:
5050
languages: ${{ matrix.language }}
5151
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -59,7 +59,7 @@ jobs:
5959
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6060
# If this step fails, then you should remove it and run the build manually (see below)
6161
- name: Autobuild
62-
uses: github/codeql-action/autobuild@v2
62+
uses: github/codeql-action/autobuild@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
6363

6464
# ℹ️ Command-line programs to run using the OS shell.
6565
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -72,6 +72,6 @@ jobs:
7272
# ./location_of_script_within_repo/buildscript.sh
7373

7474
- name: Perform CodeQL Analysis
75-
uses: github/codeql-action/analyze@v2
75+
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
7676
with:
7777
category: "/language:${{matrix.language}}"

‎.github/workflows/docs.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
deploy:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2020
with:
2121
submodules: true # Fetch Hugo themes (true OR recursive)
2222
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2323

2424
- name: Use Node.js
25-
uses: actions/setup-node@v2
25+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2626
env:
2727
RUNNING_NODE_CI: 1
2828
- run: |
@@ -32,7 +32,7 @@ jobs:
3232
npm run docs
3333
3434
- name: Deploy
35-
uses: peaceiris/actions-gh-pages@v3
35+
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
3636
with:
3737
github_token: ${{ secrets.GITHUB_TOKEN }}
3838
publish_dir: ./docs

‎.github/workflows/issues.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/stale@v3
14+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
1515
with:
1616
repo-token: ${{ secrets.GITHUB_TOKEN }}
1717
operations-per-run: 60

0 commit comments

Comments
 (0)