Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
ref: refs/tags/v${{ env.YARA_X_RELEASE }}
- name: Install Rust for yara-x-capi
if: steps.yara-x-capi.outputs.cache-hit != 'true'
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1

Check notice

Code scanning / zizmor

action functionality is already included by the runner: use rustup and/or cargo in a script step Note

action functionality is already included by the runner: use rustup and/or cargo in a script step
Comment thread
egibs marked this conversation as resolved.
Dismissed
with:
toolchain: stable
- name: Cache Rust dependencies
Expand All @@ -80,16 +80,18 @@
restore-keys: rust-cargo-
- name: Build yara-x-capi
if: steps.yara-x-capi.outputs.cache-hit != 'true'
env:
WORKSPACE: ${{ github.workspace }}
run: |
command -v cargo-cinstall || cargo install cargo-c --locked
cd ${{ github.workspace }}/yara-x
cd "${WORKSPACE}/yara-x"
RUSTFLAGS="-C target-feature=+crt-static" cargo cinstall -p yara-x-capi --features=native-code-serialization \
--profile release-lto \
--pkgconfigdir=${{ github.workspace }}/yara-x-install \
--includedir=${{ github.workspace }}/yara-x-install \
--libdir=${{ github.workspace }}/yara-x-install \
--pkgconfigdir="${WORKSPACE}/yara-x-install" \
--includedir="${WORKSPACE}/yara-x-install" \
--libdir="${WORKSPACE}/yara-x-install" \
--crt-static --library-type="staticlib"
rm -rf ${{ github.workspace }}/yara-x
rm -rf "${WORKSPACE}/yara-x"
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/digestabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
release-assets.githubusercontent.com:443
tuf-repo-cdn.sigstore.dev:443

- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d
- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d # main

Check notice

Code scanning / zizmor

action's hash pin has mismatched or missing version comment Note

action's hash pin has mismatched or missing version comment

- uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05 # v1.1.1
id: octo-sts
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/fuzz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
- name: Install dependencies
run: |
apk update
apk add curl findutils git gnutar ${{ env.GO_RELEASE }} nodejs upx xz yara-x~${{ env.YARA_X_RELEASE }}
apk add curl findutils git gnutar "${GO_RELEASE}" nodejs upx xz "yara-x~${YARA_X_RELEASE}"

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -170,6 +170,8 @@ jobs:
# -parallel=1 is used for now due to this: https://github.com/golang/go/issues/56238
- name: Run fuzzer - ${{ matrix.target.test }}
env:
FUZZ_TARGET: ${{ matrix.target.test }}
FUZZ_PACKAGE: ${{ matrix.target.package }}
FUZZ_TIME: ${{ inputs.fuzz_time || '30s' }}
run: |
go test -parallel=1 -timeout 0 -fuzz="^${{ matrix.target.test }}$" -fuzztime="${FUZZ_TIME}" "${{ matrix.target.package }}"
go test -parallel=1 -timeout 0 -fuzz="^${FUZZ_TARGET}$" -fuzztime="${FUZZ_TIME}" "${FUZZ_PACKAGE}"
4 changes: 2 additions & 2 deletions .github/workflows/go-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Install dependencies
run: |
apk update
apk add curl findutils git gnutar ${{ env.GO_RELEASE }} nodejs upx xz yara-x~${{ env.YARA_X_RELEASE }}
apk add curl findutils git gnutar "${GO_RELEASE}" nodejs upx xz "yara-x~${YARA_X_RELEASE}"

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Install dependencies
run: |
apk update
apk add curl findutils git gnutar ${{ env.GO_RELEASE }} nodejs upx xz yara-x~${{ env.YARA_X_RELEASE }}
apk add curl findutils git gnutar "${GO_RELEASE}" nodejs upx xz "yara-x~${YARA_X_RELEASE}"

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
github.com:443
octo-sts.dev:443
release-assets.githubusercontent.com:443
- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d
- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d # main

Check notice

Code scanning / zizmor

action's hash pin has mismatched or missing version comment Note

action's hash pin has mismatched or missing version comment
- name: Set up Octo-STS
uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05 # v1.1.1
id: octo-sts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:
- name: Install dependencies
run: |
apk update
apk add curl findutils git ${{ env.GO_RELEASE }} nodejs yara-x~${{ env.YARA_X_RELEASE }}
apk add curl findutils git "${GO_RELEASE}" nodejs "yara-x~${YARA_X_RELEASE}"

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/third-party.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
- name: Install dependencies
run: |
apk update
apk add bash curl findutils gh git gnutar ${{ env.GO_RELEASE }} nodejs perl upx xz yara-x~${{ env.YARA_X_RELEASE }}
- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d
apk add bash curl findutils gh git gnutar "${GO_RELEASE}" nodejs perl upx xz "yara-x~${YARA_X_RELEASE}"
- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d # main

Check notice

Code scanning / zizmor

action's hash pin has mismatched or missing version comment Note

action's hash pin has mismatched or missing version comment
- name: Set up Octo-STS
uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05 # v1.1.1
id: octo-sts
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/update-yara-x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
id: check
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
run: |
CURRENT=$(grep '^YARA_X_VERSION' Makefile | head -1 | sed 's/.*= *//')
echo "Current version: ${CURRENT}"
Expand All @@ -68,7 +69,7 @@

# Skip if there is already an open PR for this version
VERSION="${LATEST#v}"
EXISTING=$(gh pr list --repo "${{ github.repository }}" --head "bump-yara-x-${VERSION}" --state open --json number --jq 'length')
EXISTING=$(gh pr list --repo "${REPOSITORY}" --head "bump-yara-x-${VERSION}" --state open --json number --jq 'length')
if [[ "${EXISTING}" -gt 0 ]]; then
echo "Open PR already exists for yara-x ${VERSION}"
echo "update_available=false" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -111,7 +112,7 @@
sum.golang.org:443
tuf-repo-cdn.sigstore.dev:443

- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d
- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d # main

Check notice

Code scanning / zizmor

action's hash pin has mismatched or missing version comment Note

action's hash pin has mismatched or missing version comment
- name: Set up Octo-STS
uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05 # v1.1.1
id: octo-sts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
rekor.sigstore.dev:443
release-assets.githubusercontent.com:443
tuf-repo-cdn.sigstore.dev:443
- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d
- uses: chainguard-dev/actions/setup-gitsign@4a81273c8653122cf4e48cc248f9073b660c5e6d # main

Check notice

Code scanning / zizmor

action's hash pin has mismatched or missing version comment Note

action's hash pin has mismatched or missing version comment
- name: Set up Octo-STS
uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05 # v1.1.1
id: octo-sts
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/zizmor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ on:
paths:
- '.github/workflows/**'
- '.github/actions/**'
- '.github/dependabot.yml'
- '.github/zizmor.yml'
push:
branches: ['main']
paths:
- '.github/workflows/**'
- '.github/actions/**'
- '.github/dependabot.yml'
- '.github/zizmor.yml'

permissions: {}

Expand Down Expand Up @@ -42,3 +46,5 @@ jobs:

- name: Run zizmor
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
with:
persona: pedantic
16 changes: 16 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2026 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0

rules:
dependabot-cooldown:
config:
days: 3
# Pedantic-only; no security impact — cosmetic/style findings
anonymous-definition:
disable: true
undocumented-permissions:
disable: true
# Pedantic-only; low security value but noisy
# Address concurrency limits as a separate, dedicated effort if desired
concurrency-limits:
disable: true
Loading