Skip to content

Commit 3e6f5b6

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 0f8ed2b commit 3e6f5b6

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ jobs:
3131
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3232

3333
steps:
34+
- name: Harden the runner (Audit all outbound calls)
35+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
36+
with:
37+
egress-policy: audit
38+
3439
- name: Checkout repository
35-
uses: actions/checkout@v3
40+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3641

3742
# Initializes the CodeQL tools for scanning.
3843
- name: Initialize CodeQL
39-
uses: github/codeql-action/init@v2
44+
uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
4045
with:
4146
languages: ${{ matrix.language }}
4247
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +55,7 @@ jobs:
5055
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5156
# If this step fails, then you should remove it and run the build manually (see below)
5257
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
58+
uses: github/codeql-action/autobuild@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
5459

5560
# ℹ️ Command-line programs to run using the OS shell.
5661
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -63,4 +68,4 @@ jobs:
6368
# ./location_of_script_within_repo/buildscript.sh
6469

6570
- name: Perform CodeQL Analysis
66-
uses: github/codeql-action/analyze@v2
71+
uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1

.github/workflows/development.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ jobs:
2121
env: [""]
2222

2323
steps:
24+
- name: Harden the runner (Audit all outbound calls)
25+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
26+
with:
27+
egress-policy: audit
28+
2429
- name: Set up Aerospike Database
25-
uses: reugn/github-action-aerospike@v1
26-
- uses: actions/checkout@v4
27-
- uses: ruby/setup-ruby@v1
30+
uses: reugn/github-action-aerospike@2065a9209cfd5ef88a3e07f3e7929e321d1e0067 # v1.1.0
31+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
32+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
2833
with:
2934
ruby-version: ${{matrix.ruby}}
3035
bundler-cache: true

0 commit comments

Comments
 (0)