Skip to content

Commit 9511d06

Browse files
authored
Merge pull request #2385 from jbampton/pin-gha-workflows
Pin all actions workflows
2 parents 347b2f4 + 0787634 commit 9511d06

File tree

5 files changed

+41
-8
lines changed

5 files changed

+41
-8
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
6464

6565
- name: Cache local Maven repository
66-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 #v4.3.0
66+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
6767
with:
6868
path: ~/.m2
6969
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: 'Dependency Review'
19+
on: [pull_request]
20+
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
dependency-review:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: 'Checkout Repository'
29+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
30+
- name: 'Dependency Review'
31+
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2

.github/workflows/labeler.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@
1919
name: Pull Request Labeler
2020
on:
2121
- pull_request_target
22+
permissions:
23+
contents: read
2224
jobs:
2325
triage:
2426
permissions:
2527
contents: read
2628
pull-requests: write
2729
runs-on: ubuntu-latest
2830
steps:
29-
- uses: actions/labeler@v6
31+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
3032
with:
3133
repo-token: '${{ secrets.GITHUB_TOKEN }}'
3234
sync-labels: true

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: 'Checkout ${{ github.ref }} ( ${{ github.sha }} )'
35-
uses: actions/checkout@v6.0.0
36-
- uses: actions/setup-python@v6 # https://www.python.org/
35+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
36+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # 6.0.0
3737
with:
3838
python-version: '3.13' # Version range or exact version of a Python version to use, using SemVer's version range syntax
3939
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
@@ -43,7 +43,7 @@ jobs:
4343
pip install pre-commit
4444
- name: set PY
4545
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
46-
- uses: actions/cache@v4
46+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4747
with:
4848
path: ~/.cache/pre-commit
4949
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/scorecards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242

4343
steps:
4444
- name: "Checkout code"
45-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # tag=v3.0.0
45+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4646
with:
4747
persist-credentials: false
4848

4949
- name: "Run analysis"
50-
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a #tag=2.4.3
50+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # tag=2.4.3
5151
with:
5252
results_file: results.sarif
5353
results_format: sarif
@@ -74,6 +74,6 @@ jobs:
7474

7575
# Upload the results to GitHub's code scanning dashboard.
7676
- name: "Upload to code-scanning"
77-
uses: github/codeql-action/upload-sarif@fe4161a26a8629af62121b670040955b330f9af2 #tag=v2
77+
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # tag=v2
7878
with:
7979
sarif_file: results.sarif

0 commit comments

Comments
 (0)