Skip to content

Commit 4236ea3

Browse files
authored
Update yara-x to 0.15.0 (#935)
* Update yara-x to 0.15.0 Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> * Naming consistency Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> --------- Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent e93915f commit 4236ea3

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fetch-tags: true
3737
repository: virusTotal/yara-x
3838
path: yara-x
39-
ref: refs/tags/v0.14.0
39+
ref: refs/tags/v0.15.0
4040
- name: Install Rust for yara-x-capi
4141
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
4242
with:

Makefile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
SAMPLES_REPO ?= chainguard-dev/malcontent-samples
66
SAMPLES_COMMIT ?= f948cfd0f9d2a35a2452fe43ea4d094979652103
7-
YARAX_REPO ?= virusTotal/yara-x
8-
YARAX_COMMIT ?= b9ade771e129eda2487083f0eea6a05234b6dbcc
7+
YARA_X_REPO ?= virusTotal/yara-x
8+
YARA_X_COMMIT ?= 3537bcfd9c4f2dc6a38f266079a40c1a1dc5eb72
99

1010
# BEGIN: lint-install ../malcontent
1111
# http://github.com/tinkerbell/lint-install
@@ -52,12 +52,12 @@ $(GOLANGCI_LINT_BIN):
5252
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(LINT_ROOT)/out/linters $(GOLANGCI_LINT_VERSION)
5353
mv $(LINT_ROOT)/out/linters/golangci-lint $@
5454

55-
YARA_X_VERSION ?= v0.14.0
55+
YARA_X_VERSION ?= v0.15.0
5656
YARA_X_SHA :=
5757
ifeq ($(LINT_OS),Darwin)
58-
YARA_X_SHA=3d35ac9138d916834de7d5f9fd2d72bfa4f1c5bb3467deeb08728e80d48dab0e
58+
YARA_X_SHA=c9463e2d2c5662e103fe85e1dab999338e446280c54fb5a24f6af8fde2018fc6
5959
else
60-
YARA_X_SHA=9e3bae16de66cbc6f79e83c3e743865867571601010f1d7c68510173c10a4889
60+
YARA_X_SHA=56b207268dd8cfd237bfeb75199e3133fcec1b729e8113d8561c267ac3dccad6
6161
endif
6262
YARA_X_BIN := $(LINT_ROOT)/out/linters/yr-$(YARA_X_VERSION)-$(LINT_ARCH)
6363
$(YARA_X_BIN):
@@ -109,20 +109,20 @@ out/$(SAMPLES_REPO)/.decompressed-$(SAMPLES_COMMIT): out/${SAMPLES_REPO}/.git/co
109109
find out/$(SAMPLES_REPO)/ -name "*.xz" -type f -exec xz -dk {} \;
110110
touch out/$(SAMPLES_REPO)/.decompressed-$(SAMPLES_COMMIT)
111111

112-
out/$(YARAX_REPO)/.git/commit-$(YARAX_COMMIT):
113-
mkdir -p out/$(YARAX_REPO)
114-
test -d out/$(YARAX_REPO)/.git ||git clone https://github.com/$(YARAX_REPO).git out/$(YARAX_REPO)
115-
rm out/$(YARAX_REPO)/.git/commit-* 2>/dev/null || true
116-
git -C out/$(YARAX_REPO) switch - || true
117-
git -C out/$(YARAX_REPO) pull
118-
git -C out/$(YARAX_REPO) checkout $(YARAX_COMMIT)
119-
touch out/$(YARAX_REPO)/.git/commit-$(YARAX_COMMIT)
112+
out/$(YARA_X_REPO)/.git/commit-$(YARA_X_COMMIT):
113+
mkdir -p out/$(YARA_X_REPO)
114+
test -d out/$(YARA_X_REPO)/.git ||git clone https://github.com/$(YARA_X_REPO).git out/$(YARA_X_REPO)
115+
rm out/$(YARA_X_REPO)/.git/commit-* 2>/dev/null || true
116+
git -C out/$(YARA_X_REPO) switch - || true
117+
git -C out/$(YARA_X_REPO) pull
118+
git -C out/$(YARA_X_REPO) checkout $(YARA_X_COMMIT)
119+
touch out/$(YARA_X_REPO)/.git/commit-$(YARA_X_COMMIT)
120120

121121
.PHONY: install-yara-x
122-
install-yara-x: out/$(YARAX_REPO)/.git/commit-$(YARAX_COMMIT)
122+
install-yara-x: out/$(YARA_X_REPO)/.git/commit-$(YARA_X_COMMIT)
123123
mkdir -p out/lib
124124
mkdir -p out/include
125-
cd out/$(YARAX_REPO) && \
125+
cd out/$(YARA_X_REPO) && \
126126
cargo install cargo-c --locked && \
127127
cargo cinstall -p yara-x-capi --features=native-code-serialization --release --prefix="$(LINT_ROOT)/out" --libdir="$(LINT_ROOT)/out/lib"
128128

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.23.4
55
toolchain go1.24.1
66

77
require (
8-
github.com/VirusTotal/yara-x/go v0.14.0
8+
github.com/VirusTotal/yara-x/go v0.15.0
99
github.com/agext/levenshtein v1.2.3
1010
github.com/cavaliergopher/cpio v1.0.1
1111
github.com/cavaliergopher/rpm v1.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/VirusTotal/yara-x/go v0.14.0 h1:tda9+yrRMlTBrvs615Gc8uWZmjUSDHgNhvYd+vA0juw=
2-
github.com/VirusTotal/yara-x/go v0.14.0/go.mod h1:lgXP/nkYX349MVowrtTtU5hzMdCOWQLv3+wKll9+0F8=
1+
github.com/VirusTotal/yara-x/go v0.15.0 h1:CHNvN6s38ctySGtlZhS44JnWdpKDbIpSmhMyt/JmQps=
2+
github.com/VirusTotal/yara-x/go v0.15.0/go.mod h1:lgXP/nkYX349MVowrtTtU5hzMdCOWQLv3+wKll9+0F8=
33
github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=
44
github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
55
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=

0 commit comments

Comments
 (0)