Skip to content

Commit a752ed9

Browse files
authored
Pin GitHub actions with hash (#2521)
1 parent 74d5dfe commit a752ed9

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches: [ master, develop ]
99
schedule:
1010
- cron: '27 5 * * 6'
11+
workflow_dispatch:
1112

1213
jobs:
1314
analyze:
@@ -25,11 +26,11 @@ jobs:
2526

2627
steps:
2728
- name: Checkout repository
28-
uses: actions/checkout@v6
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2930

3031
# Initializes the CodeQL tools for scanning.
3132
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v4
33+
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
3334
with:
3435
languages: ${{ matrix.language }}
3536
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -40,7 +41,7 @@ jobs:
4041
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4142
# If this step fails, then you should remove it and run the build manually (see below)
4243
- name: Autobuild
43-
uses: github/codeql-action/autobuild@v4
44+
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
4445

4546
# ℹ️ Command-line programs to run using the OS shell.
4647
# 📚 https://git.io/JvXDl
@@ -54,4 +55,4 @@ jobs:
5455
# make release
5556

5657
- name: Perform CodeQL Analysis
57-
uses: github/codeql-action/analyze@v4
58+
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: build
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
permissions:
66
contents: read
@@ -16,9 +16,9 @@ jobs:
1616
os: [ubuntu-latest, windows-latest, macos-latest]
1717

1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v6
21+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2222
with:
2323
cache: 'npm'
2424
node-version: ${{ matrix.node-version }}

0 commit comments

Comments
 (0)