on:
push:
+ paths-ignore:
+ # Don't run this workflow if only files under doc/ have been
+ # modified.
+ - "doc/**"
pull_request:
workflow_dispatch:
inputs:
SV_REPO:
SV_BRANCH:
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
permissions: read-all
env:
runs-on: ubuntu-latest
steps:
- name: Cache ~/.cargo
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo
key: ${{ github.job }}-cargo
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
key: ${{ github.job }}-dnf
needs: [prepare-deps, prepare-cbindgen]
steps:
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
# TODO: Find some variable that matches the job name.
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
key: ${{ github.job }}-dnf
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
key: ${{ github.job }}-dnf
which \
zlib-devel
- name: Download suricata.tar.gz
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: dist
- run: tar zxvf suricata-*.tar.gz --strip-components=1
test -e /usr/local/lib/suricata/python/suricata/update/configs/modify.conf
test -e /usr/local/lib/suricata/python/suricata/update/configs/threshold.in
test -e /usr/local/lib/suricata/python/suricata/update/configs/update.yaml
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
key: ${{ github.job }}-dnf
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.63.0 -y
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- uses: ./.github/actions/install-cbindgen
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
- run: llvm-profdata merge -o default.profdata $(find suricata-verify/tests/ -name '*.profraw')
- run: llvm-cov show ./src/suricata -instr-profile=default.profdata --show-instantiations --ignore-filename-regex="^/root/.*" > coverage.txt
- name: Upload coverage to Codecov
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
+ uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
with:
fail_ci_if_error: false
flags: suricata-verify
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
key: ${{ github.job }}-dnf
systemd-devel \
which \
zlib-devel
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- uses: ./.github/actions/install-cbindgen
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
sudo \
which \
zlib-devel
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
- uses: ./.github/actions/install-cbindgen
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
key: ${{ github.job }}-dnf
systemd-devel \
which \
zlib-devel
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
- uses: ./.github/actions/install-cbindgen
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
sudo \
which \
zlib-devel
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- uses: ./.github/actions/install-cbindgen
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
which \
zlib-devel
- run: adduser suricata
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- uses: ./.github/actions/install-cbindgen
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
key: ${{ github.job }}-dnf
sudo \
which \
zlib-devel
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Cache RPMs
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/dnf
key: ${{ github.job }}-dnf
dnf -y install dnf-plugins-core epel-release
dnf config-manager --set-enabled crb
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - uses: ./.github/actions/install-cbindgen
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
+
+ - name: Install minimal dependencies
+ run: ./scripts/docs-almalinux9-minimal-build.sh
+
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
- run: tar xf prep/libhtp.tar.gz
- run: ./autogen.sh
- - uses: ./.github/actions/install-cbindgen
-
- - name: Install minimal dependencies
- run: ./scripts/docs-almalinux9-minimal-build.sh
-
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure
- run: make -j ${{ env.CPUS }}
- run: ./src/suricata --build-info # check if we can run Suricata
needs: [prepare-deps, prepare-cbindgen]
steps:
- name: Cache ~/.cargo
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
# packaged Rust version is too old for coverage, so get from rustup
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.63.0 -y
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
- run: llvm-profdata-14 merge -o htp-test.profdata /tmp/htp-test.profraw
- run: llvm-cov-14 show libhtp/test/test_all -instr-profile=htp-test.profdata --show-instantiations --ignore-filename-regex="^/root/.*" >> coverage.txt
- name: Upload coverage to Codecov
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
+ uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
with:
fail_ci_if_error: false
flags: unittests
# packaged Rust version is too old for coverage, so get from rustup
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.63.0 -y
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
- run: llvm-profdata-14 merge -o default.profdata $(find /tmp/ -name '*.profraw')
- run: llvm-cov-14 show ./src/suricata -instr-profile=default.profdata --show-instantiations --ignore-filename-regex="^/root/.*" > coverage.txt
- name: Upload coverage to Codecov
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
+ uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
with:
fail_ci_if_error: false
flags: fuzzcorpus
needs: [prepare-deps, prepare-cbindgen]
steps:
- name: Cache ~/.cargo
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
zlib1g-dev \
exuberant-ctags \
dpdk-dev
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
needs: debian-12-dist
steps:
- name: Cache ~/.cargo
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.62.0 -y
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Download suricata.tar.gz
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: dist
- run: tar zxvf suricata-*.tar.gz --strip-components=1
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
zlib1g \
zlib1g-dev \
exuberant-ctags
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
zlib1g \
zlib1g-dev
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
linux-headers-$(uname -r)
- name: Checkout Netmap repository
- uses: actions/checkout@v3.5.3
+ if: steps.netmap-cache.outputs.cache-hit != 'true'
+ uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
repository: luigirizzo/netmap
# gets cloned to $GITHUB_WORKSPACE/netmap/
path: netmap/
+ - name: Save Netmap Cache
+ if: steps.netmap-cache.outputs.cache-hit != 'true'
+ uses: actions/cache/save@v4
+ with:
+ path: netmap/
+ key: netmap-git
+
- name: Compile and install Netmap
run: |
cd $GITHUB_WORKSPACE/netmap/LINUX
make -j2
sudo make install
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
git \
libtool
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
ninja -C build install
ldconfig
cd $HOME
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
texlive-latex-extra \
zlib1g \
zlib1g-dev
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
texlive-latex-extra \
zlib1g \
zlib1g-dev
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
run: |
mkdir dist
mv suricata-*.tar.gz dist
- - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
+ - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
name: Uploading distribution
with:
name: dist
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
texlive-latex-extra \
zlib1g \
zlib1g-dev
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION_KNOWN -y
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION_KNOWN -y
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
rust \
xz
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- - uses: actions/checkout@v3.5.3
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
- name: Downloading prep archive
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
shell: msys2 {0}
steps:
- name: Cache ~/.cargo
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
# preinstalled one to be picked up by configure
- name: cbindgen
run: cargo install --root /usr --force --debug --version 0.24.3 cbindgen
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
shell: msys2 {0}
steps:
- name: Cache ~/.cargo
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
# preinstalled one to be picked up by configure
- name: cbindgen
run: cargo install --root /usr --force --debug --version 0.24.3 cbindgen
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep
shell: msys2 {0}
steps:
- name: Cache ~/.cargo
- uses: actions/cache@v3.3.1
+ uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ~/.cargo/registry
key: cargo-registry
# preinstalled one to be picked up by configure
- name: cbindgen
run: cargo install --root /usr --force --debug --version 0.24.3 cbindgen
- - uses: actions/checkout@v3.5.3
- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
+ - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
+ - run: git config --global --add safe.directory /__w/suricata/suricata
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: prep
path: prep