@@ -30,12 +30,25 @@ jobs:
3030 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3131
3232 steps :
33+ - name : Harden Runner
34+ uses : step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
35+ with :
36+ disable-sudo : true
37+ egress-policy : block
38+ allowed-endpoints : >
39+ api.github.com:443
40+ github.com:443
41+
3342 - name : Checkout repository
3443 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3544
45+ - name : " Dependency Review"
46+ if : github.event_name == 'pull_request'
47+ uses : actions/dependency-review-action@0efb1d1d84fc9633afcdaad14c485cbbc90ef46c # v2.5.1
48+
3649 # Initializes the CodeQL tools for scanning.
3750 - name : Initialize CodeQL
38- uses : github/codeql-action/init@v3
51+ uses : github/codeql-action/init@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
3952 with :
4053 languages : python
4154 # If you wish to specify custom queries, you can do so here or in a config file.
4861 # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
4962 # If this step fails, then you should remove it and run the build manually (see below)
5063 - name : Autobuild
51- uses : github/codeql-action/autobuild@v3
64+ uses : github/codeql-action/autobuild@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
5265
5366 # ℹ️ Command-line programs to run using the OS shell.
5467 # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6174 # ./location_of_script_within_repo/buildscript.sh
6275
6376 - name : Perform CodeQL Analysis
64- uses : github/codeql-action/analyze@v3
77+ uses : github/codeql-action/analyze@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
6578 with :
6679 category : " /language:python"
0 commit comments