This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-erlang.git
The following commit(s) were added to refs/heads/main by this push:
new 1332724 chore: Perform zizmor checks (#96)
1332724 is described below
commit 1332724b1275dd839fd52e9362da3733fd3e9141
Author: Benjamin Philip <[email protected]>
AuthorDate: Mon Jul 6 18:07:16 2026 +0530
chore: Perform zizmor checks (#96)
## What issue does this PR close?
Closes #72.
## What's changed
Executes the Zizmor linter as part of the GitHub Actions checks. Also
fixes some
warnings raised by Zizmor in order to merge with a passing CI.
---
.github/dependabot.yml | 4 +++
.github/workflows/docs.yml | 12 +++++----
.github/workflows/erlang-ci.yml | 31 +++++++++++++++-------
...llowlist-check.yml => github-actions-check.yml} | 16 +++++++++--
.github/workflows/rust-ci.yml | 15 ++++++++---
5 files changed, 58 insertions(+), 20 deletions(-)
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 5bdbfb9..a1e3a8d 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -24,6 +24,8 @@ updates:
commit-message:
prefix: "chore: "
open-pull-requests-limit: 10
+ cooldown:
+ default-days: 7
- package-ecosystem: "cargo"
directory: "/native/arrow_format_nif"
schedule:
@@ -31,3 +33,5 @@ updates:
commit-message:
prefix: "chore: "
open-pull-requests-limit: 10
+ cooldown:
+ default-days: 7
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 12cf966..f4be4a7 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -44,10 +44,12 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
- name: Cache Rust crates
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cargo/bin/
@@ -70,7 +72,7 @@ jobs:
rebar3-version: '3.18.0'
- name: Cache Hex packages
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}',
github.workspace, '/rebar.lock')) }}
@@ -81,10 +83,10 @@ jobs:
run: rebar3 ex_doc
- name: Upload artifact
- uses: actions/upload-pages-artifact@v5
+ uses:
actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: 'doc'
- name: Deploy to GitHub Pages
id: deployment
- uses: actions/deploy-pages@v5
+ uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 #
v5.0.0
diff --git a/.github/workflows/erlang-ci.yml b/.github/workflows/erlang-ci.yml
index 6948826..9bb1e0d 100644
--- a/.github/workflows/erlang-ci.yml
+++ b/.github/workflows/erlang-ci.yml
@@ -27,13 +27,18 @@ on:
env:
RUST_TOOLCHAIN_VERSION: stable
+permissions:
+ contents: read
+
jobs:
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
- name: Install Erlang/OTP
uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 #
v1.24.0
@@ -42,7 +47,7 @@ jobs:
rebar3-version: '3.18.0'
- name: Cache Hex packages
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}',
github.workspace, '/rebar.lock')) }}
@@ -57,10 +62,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
- name: Cache Rust crates
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cargo/bin/
@@ -83,7 +90,7 @@ jobs:
rebar3-version: '3.18.0'
- name: Cache Hex packages
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}',
github.workspace, '/rebar.lock')) }}
@@ -101,7 +108,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
- name: Install Erlang/OTP
uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 #
v1.24.0
@@ -110,7 +119,7 @@ jobs:
rebar3-version: '3.18.0'
- name: Cache Hex packages
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}',
github.workspace, '/rebar.lock')) }}
@@ -128,10 +137,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
- name: Cache Rust crates
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cargo/bin/
@@ -154,7 +165,7 @@ jobs:
rebar3-version: '3.18.0'
- name: Cache Hex packages
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}',
github.workspace, '/rebar.lock')) }}
diff --git a/.github/workflows/asf-allowlist-check.yml
b/.github/workflows/github-actions-check.yml
similarity index 80%
rename from .github/workflows/asf-allowlist-check.yml
rename to .github/workflows/github-actions-check.yml
index e9392df..9139166 100644
--- a/.github/workflows/asf-allowlist-check.yml
+++ b/.github/workflows/github-actions-check.yml
@@ -34,8 +34,8 @@ permissions:
contents: read
jobs:
- gha:
- name: "Analyze Actions"
+ allowlist:
+ name: Check ASF Allowlist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
@@ -45,3 +45,15 @@ jobs:
# Check that actions are pinned and on the ASF allowlist.
# Intentionally unpinned to always use the latest allowlist from the ASF.
- uses: apache/infrastructure-actions/allowlist-check@main # zizmor:
ignore[unpinned-uses]
+
+ zizmor:
+ name: Zizmor Checks
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
+
+ - uses:
zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7
+ with:
+ advanced-security: false
diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml
index 331328d..2d7198a 100644
--- a/.github/workflows/rust-ci.yml
+++ b/.github/workflows/rust-ci.yml
@@ -27,6 +27,9 @@ on:
env:
RUST_TOOLCHAIN_VERSION: stable
+permissions:
+ contents: read
+
jobs:
lint-rust:
name: Lint Rust with Clippy
@@ -37,7 +40,9 @@ jobs:
- native/arrow_format_nif/Cargo.toml
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
- uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30
# stable
with:
@@ -62,7 +67,9 @@ jobs:
- native/arrow_format_nif/Cargo.toml
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
- uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30
# stable
with:
@@ -87,7 +94,9 @@ jobs:
- native/arrow_format_nif/Cargo.toml
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
+ with:
+ persist-credentials: false
- uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30
# stable
with: