Skip to content

Commit

Permalink
workflow: pin GitHub actions to their full length commit SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
tkanteck authored and pablodelara committed Feb 1, 2024
1 parent 981328f commit 12cfc77
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
# Build shared library with GMake (Clang)
release-gmake-clang-shared:
runs-on: ubuntu-22.04

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'

- name: Build
uses: vmactions/freebsd-vm@v1
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 # v1.0.6
with:
usesh: true
mem: 8192
Expand All @@ -33,12 +36,12 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'

- name: Build
uses: vmactions/freebsd-vm@v1
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 # v1.0.6
with:
usesh: true
mem: 8192
Expand All @@ -53,12 +56,12 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'

- name: Clang Release Build
uses: vmactions/freebsd-vm@v1
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 # v1.0.6
with:
usesh: true
mem: 8192
Expand All @@ -79,12 +82,12 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'

- name: Release build with GCC
uses: vmactions/freebsd-vm@v1
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 # v1.0.6
with:
usesh: true
mem: 8192
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
# Build shared library with Make (GCC)
release-make-gcc-shared:
Expand All @@ -16,7 +19,7 @@ jobs:
run: sudo apt-get install -y nasm

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: intel/intel-ipsec-mb

Expand All @@ -39,7 +42,7 @@ jobs:
run: sudo apt-get install -y nasm

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: intel/intel-ipsec-mb

Expand All @@ -55,7 +58,7 @@ jobs:
run: sudo apt-get install -y nasm clang

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: intel/intel-ipsec-mb

Expand All @@ -71,7 +74,7 @@ jobs:
run: sudo apt-get install -y nasm clang

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: intel/intel-ipsec-mb

Expand All @@ -87,7 +90,7 @@ jobs:
run: sudo apt-get install -y nasm clang

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: intel/intel-ipsec-mb

Expand All @@ -105,7 +108,7 @@ jobs:
run: sudo apt-get install -y nasm

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'

Expand Down Expand Up @@ -138,7 +141,7 @@ jobs:
run: sudo apt-get install -y nasm

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'

Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
# CMake release build with shared library (msbuild)
release-cmake-msvc-msbuild:
Expand All @@ -15,15 +18,15 @@ jobs:

steps:
- name: Setup NASM
uses: ilammy/setup-nasm@v1
uses: ilammy/setup-nasm@13cbeb366c45c4379d3478cdcbadd8295feb5028 # v1.5.1

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@c26a08ba26249b81327e26f6ef381897b6a8754d # v1.0.2

- name: Setup environment
run: |
Expand All @@ -50,15 +53,15 @@ jobs:

steps:
- name: Setup NASM
uses: ilammy/setup-nasm@v1
uses: ilammy/setup-nasm@13cbeb366c45c4379d3478cdcbadd8295feb5028 # v1.5.1

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
repository: 'intel/intel-ipsec-mb'

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@c26a08ba26249b81327e26f6ef381897b6a8754d # v1.0.2

- name: Setup environment
run: |
Expand Down

0 comments on commit 12cfc77

Please sign in to comment.