Skip to content

Commit 4f133c9

Browse files
Juee14Desaij-xiong
authored andcommitted
.github/workflows: Pin all dependencies by hash instead of version number
OSSF scorecard has 1/10 score for pinned-dependencies. To increase this score the dependencies have to be pinned by hash. OSSF help suggests using StepSecurity Tool to update the dependency. For more information: https://github.com/ossf/scorecard/blob/7ce8609469289d5f3b1bf5ee3122f42b4e3054fb/docs/checks.md#pinned-dependencies To check the list of dependencies flagged in report, go to Pinned-Dependencies section: https://securityscorecards.dev/viewer/?uri=github.com/ofiwg/libfabric Signed-off-by: Juee Himalbhai Desai <[email protected]>
1 parent 4171ebc commit 4f133c9

8 files changed

+19
-19
lines changed

.github/workflows/clang-format-check-cn.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
path:
1010
- 'prov/opx'
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1313
- name: Run clang-format style check for C/C++/Protobuf programs (Cornelis Networks-specific).
14-
uses: jidicula/[email protected]
14+
uses: jidicula/clang-format-action@81356ae1ab1ef29a26ff0409930e76f84b3a239b # v4.10.2
1515
with:
1616
clang-format-version: '15'
1717
check-path: ${{ matrix.path }}

.github/workflows/clang-format-check.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
path:
1212
- 'prov/sm2'
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1515
- name: Run clang-format style check for C/C++/Protobuf programs.
16-
uses: jidicula/[email protected]
16+
uses: jidicula/clang-format-action@c74383674bf5f7c69f60ce562019c1c94bc1421a # v4.13.0
1717
with:
1818
clang-format-version: '15'
1919
check-path: ${{ matrix.path }}

.github/workflows/codeql.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ jobs:
4848

4949
steps:
5050
- name: Checkout repository
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5252

5353
# Initializes the CodeQL tools for scanning.
5454
- name: Initialize CodeQL
55-
uses: github/codeql-action/init@v3
55+
uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
5656
with:
5757
languages: ${{ matrix.language }}
5858
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -66,7 +66,7 @@ jobs:
6666
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6767
# If this step fails, then you should remove it and run the build manually (see below)
6868
- name: Autobuild
69-
uses: github/codeql-action/autobuild@v3
69+
uses: github/codeql-action/autobuild@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
7070

7171
# ℹ️ Command-line programs to run using the OS shell.
7272
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -79,6 +79,6 @@ jobs:
7979
# ./location_of_script_within_repo/buildscript.sh
8080

8181
- name: Perform CodeQL Analysis
82-
uses: github/codeql-action/analyze@v3
82+
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
8383
with:
8484
category: "/language:${{matrix.language}}"

.github/workflows/coverity.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
sudo apt-get update
5353
sudo apt-get install -y ${{ env.APT_PACKAGES }}
54-
- uses: actions/checkout@v4
54+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5555
- name: Download Coverity tools
5656
run: |
5757
wget https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=ofiwg%2Flibfabric" -O coverity_tool.tgz
@@ -93,7 +93,7 @@ jobs:
9393
--form description="`$PWD/install/bin/fi_info -l`" \
9494
https://scan.coverity.com/builds?project=ofiwg%2Flibfabric
9595
- name: Upload build logs
96-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
9797
with:
9898
name: coverity-build-log.txt
9999
path: cov-int/build-log.txt

.github/workflows/gh-man.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
echo "$GITHUB_DATA"
2626
2727
- name: Check out the git repo
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2929

3030
- name: Update the man pages in branch gh-pages
3131
run: .github/workflows/gh-man.sh

.github/workflows/nroff-elves.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
echo "$GITHUB_DATA"
2424
2525
- name: Check out the git repo
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2727

2828
- name: Get the required packages
2929
run: sudo apt install -y pandoc

.github/workflows/pr-ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
sudo apt-get update
5757
sudo apt-get install -y ${{ env.APT_PACKAGES }}
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5959
- name: Build Check
6060
run: |
6161
set -x
@@ -69,7 +69,7 @@ jobs:
6969
$PWD/install/bin/fi_info -l
7070
- name: Upload build logs
7171
if: failure()
72-
uses: actions/upload-artifact@v3
72+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
7373
with:
7474
name: ${{ matrix.os }}-${{ matrix.cc }}-config.log
7575
path: config.log
@@ -95,7 +95,7 @@ jobs:
9595
sudo apt-add-repository 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main'
9696
sudo apt-get update
9797
sudo apt-get install -y level-zero level-zero-dev
98-
- uses: actions/checkout@v4
98+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
9999
- name: HMEM Checks
100100
run: |
101101
set -x
@@ -114,7 +114,7 @@ jobs:
114114
$PWD/install/bin/fi_info -c FI_HMEM
115115
- name: Upload build logs
116116
if: failure()
117-
uses: actions/upload-artifact@v3
117+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
118118
with:
119119
name: hmem-config.log
120120
path: config.log
@@ -125,7 +125,7 @@ jobs:
125125
run: |
126126
brew install automake
127127
brew install libtool
128-
- uses: actions/checkout@v4
128+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
129129
- name: Build Check
130130
run: |
131131
./autogen.sh
@@ -138,7 +138,7 @@ jobs:
138138
make -j2
139139
- name: Upload build logs
140140
if: failure()
141-
uses: actions/upload-artifact@v3
141+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
142142
with:
143143
name: macos-12-config.log
144144
path: config.log

.github/workflows/stale.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
pull-requests: write
1919

2020
steps:
21-
- uses: actions/stale@v9
21+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
2222
with:
2323
repo-token: ${{ secrets.GITHUB_TOKEN }}
2424
days-before-stale: 360

0 commit comments

Comments
 (0)