2020 schedule :
2121 - cron : ' 37 10 * * 2'
2222
23+ permissions :
24+ contents : read
25+
2326jobs :
2427 analyze :
2528 name : Analyze
@@ -61,11 +64,11 @@ jobs:
6164
6265 steps :
6366 - name : Checkout repository
64- uses : actions/checkout@v4
67+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6568
6669 # Initializes the CodeQL tools for scanning.
6770 - name : Initialize CodeQL
68- uses : github/codeql-action/init@v3
71+ uses : github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
6972 with :
7073 languages : ${{ matrix.target.language }}
7174 # If you wish to specify custom queries, you can do so here or in a config file.
7982 # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
8083 # If this step fails, then you should remove it and run the build manually (see below)
8184 - name : Autobuild
82- uses : github/codeql-action/autobuild@v3
85+ uses : github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
8386 with :
8487 working-directory : ${{ matrix.target.directory }}
8588 # There are no array literals in GHA that is why we need to use fromJson.
@@ -96,22 +99,22 @@ jobs:
9699 # ./location_of_script_within_repo/buildscript.sh
97100
98101 - name : Set up Java
99- uses : actions/setup-java@v4
102+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
100103 with :
101104 distribution : corretto
102105 java-version : ' 11'
103106 if : ${{ matrix.target.language == 'java' }}
104107
105108 - name : Setup Gradle
106- uses : gradle/actions/setup-gradle@v4
109+ uses : gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
107110
108111 - name : build Java
109112 run : ./gradlew build --no-build-cache
110113 working-directory : ${{ matrix.target.directory }}
111114 if : ${{ matrix.target.language == 'java' }}
112115
113116 - name : setup dotnet
114- uses : actions/setup-dotnet@v4
117+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
115118 with :
116119 dotnet-version : 6.x
117120 if : ${{ matrix.target.language == 'csharp' }}
@@ -123,6 +126,6 @@ jobs:
123126 if : ${{ matrix.target.language == 'csharp' }}
124127
125128 - name : Perform CodeQL Analysis
126- uses : github/codeql-action/analyze@v3
129+ uses : github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
127130 with :
128131 category : " /language:${{matrix.target.language}}"
0 commit comments