Skip to content

Commit 37dddac

Browse files
committed
ci: pin actions by commit id
1 parent d8862cd commit 37dddac

3 files changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
}
5151
5252
- name: Checkout
53-
uses: actions/checkout@v4
53+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5454
with:
5555
path: lua-hash
5656

@@ -181,7 +181,7 @@ jobs:
181181
}
182182
183183
- name: Checkout
184-
uses: actions/checkout@v4
184+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
185185
with:
186186
path: lua-hash
187187

@@ -319,7 +319,7 @@ jobs:
319319
}
320320
321321
- name: Checkout
322-
uses: actions/checkout@v4
322+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
323323
with:
324324
path: lua-hash
325325

@@ -329,16 +329,16 @@ jobs:
329329

330330
- name: Setup MSVC dev-prompt
331331
if: ${{ runner.os == 'Windows' && matrix.lua-version != 'luajit' }}
332-
uses: ilammy/msvc-dev-cmd@v1
332+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
333333

334334
- name: Setup Lua
335-
uses: luarocks/gh-actions-lua@v11
335+
uses: luarocks/gh-actions-lua@989f8e6ffba55ce1817e236478c98558e598776c # v11
336336
with:
337337
luaVersion: ${{ matrix.lua-version }}
338338
buildCache: false
339339

340340
- name: Setup LuaRocks
341-
uses: luarocks/gh-actions-luarocks@v6
341+
uses: luarocks/gh-actions-luarocks@7c85eeff60655651b444126f2a78be784e836a0a # v6
342342

343343
- name: Lint rockspecs
344344
working-directory: lua-hash
@@ -419,7 +419,7 @@ jobs:
419419
steps:
420420

421421
- name: Setup MSYS2
422-
uses: msys2/setup-msys2@v2
422+
uses: msys2/setup-msys2@40677d36a502eb2cf0fb808cc9dec31bf6152638 # v2.28.0
423423
with:
424424
msystem: ${{ matrix.MSYS2_CONFIG.sys }}
425425
install: |
@@ -447,7 +447,7 @@ jobs:
447447
luarocks config lua_dir "/${{ matrix.MSYS2_CONFIG.sys }}"
448448
449449
- name: Checkout
450-
uses: actions/checkout@v4
450+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
451451
with:
452452
path: lua-hash
453453

@@ -504,12 +504,12 @@ jobs:
504504
run: git config --global core.autocrlf input
505505

506506
- name: Checkout
507-
uses: actions/checkout@v4
507+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
508508
with:
509509
path: lua-hash
510510

511511
- name: Setup Cygwin
512-
uses: cygwin/cygwin-install-action@v5
512+
uses: cygwin/cygwin-install-action@f61179d72284ceddc397ed07ddb444d82bf9e559 # v5
513513
with:
514514
platform: x86_64
515515
install-dir: ${{ env.CYGWIN_INSTALL_DIR }}

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ jobs:
3232
}
3333
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3636
with:
3737
path: lua-hash
3838
ref: ${{ github.ref }}
3939

4040
- name: Setup Lua
41-
uses: luarocks/gh-actions-lua@v11
41+
uses: luarocks/gh-actions-lua@989f8e6ffba55ce1817e236478c98558e598776c # v11
4242
with:
4343
buildCache: false
4444

4545
- name: Setup LuaRocks
46-
uses: luarocks/gh-actions-luarocks@v6
46+
uses: luarocks/gh-actions-luarocks@7c85eeff60655651b444126f2a78be784e836a0a # v6
4747

4848
- name: Make sure that tags from GitHub and rockspec are equal
4949
run: |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ Allows a message, even the long ones, to be streamed in chunks to the underlying
308308
* Fixed an invalid error message, which would crash on Lua 5.1 and Lua 5.2, when a table of bytes was provided with numbers out of 0 - 255 range. In-depth explanation: `%I%` flag on `luaL_error` is only allowed on Lua 5.3 or newer;
309309
* Updated malloc calls to account for `sizeof(char)` and `sizeof(unsigned char)`;
310310
* Through CI, the library is also verified to work correctly on ARM64;
311+
* GitHub actions were pinned by commit id to avoid supply-chain attacks;
311312
* Rockspec upload now lives on its own [publish.yml](./.github/workflows/publish.yml) workflow. This has the goal to avoid manual upload in case of intermitent failures (e.g.: connection issues or unavailable services). In the new publish behavior, the repository owner must trigger upload manually on GitHub for the rockspec to be published on LuaRocks website.
312313
* v0.0.2:
313314
* Added the possibility for all Unix-like distributions to build and install ```lua-hash``` using the binding for ```OpenSSL```;

0 commit comments

Comments
 (0)