path: ~/.cargo/registry
key: cargo-registry
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
# Prebuild check for duplicat SIDs
- name: Check for duplicate SIDs
sudo \
which \
zlib-devel
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
sudo \
which \
zlib-devel
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
zlib1g \
zlib1g-dev \
exuberant-ctags
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
zlib1g \
zlib1g-dev \
exuberant-ctags
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
zlib1g \
zlib1g-dev \
exuberant-ctags
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
run: |
add-apt-repository -y ppa:npalix/coccinelle
apt -y install coccinelle
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
zlib1g \
zlib1g-dev
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
- 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@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
- 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@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
run: cargo install --force --debug --version 0.14.1 cbindgen
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: pip3 install PyYAML
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- name: Downloading prep archive
uses: actions/download-artifact@v2
with:
run:
shell: msys2 {0}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
# preinstalled one to be picked up by configure
- name: cbindgen
run: cargo install --root /usr --force --debug --version 0.14.1 cbindgen
- - uses: actions/checkout@v2
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- uses: actions/download-artifact@v2
with:
name: prep
on:
- pull_request
+permissions: read-all
+
+env:
+ DEBIAN_FRONTEND: "noninteractive"
+
jobs:
check-commits:
name: Commit Check
runs-on: ubuntu-latest
- container: ubuntu:18.04
+ container: ubuntu:20.04
steps:
- name: Caching ~/.cargo
- uses: actions/cache@v1
+ uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
with:
path: ~/.cargo
key: commit-check-cargo
libhiredis-dev \
libjansson-dev \
libevent-dev \
- libevent-pthreads-2.1.6 \
+ libevent-pthreads-2.1-7 \
libjansson-dev \
libpython2.7 \
libssl-dev \
- name: Install cbindgen
run: cargo install cbindgen
- run: echo $PATH
- - uses: actions/checkout@v1
+ - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
+ with:
+ fetch-depth: 0
+ # The action above is supposed to do this for us, but it doesn't appear to stick.
+ - run: /usr/bin/git config --global --add safe.directory /__w/suricata/suricata
- run: git fetch
- run: git clone https://github.com/OISF/libhtp -b 0.5.x
- name: Building all commits
- 'master-*'
pull_request:
+permissions: read-all
+
+env:
+ DEBIAN_FRONTEND: "noninteractive"
+
jobs:
# Checking for correct formatting of branch for C code changes
check-formatting:
name: Formatting Check (clang 9)
- runs-on: ubuntu-18.04
- container: ubuntu:18.04
- continue-on-error: true
+ runs-on: ubuntu-20.04
+ container: ubuntu:20.04
+ continue-on-error: false
steps:
# Cache Rust stuff.
- name: Cache cargo registry
- uses: actions/cache@v1
+ uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
with:
path: ~/.cargo/registry
key: cargo-registry
# My patience simply ran too short to keep on looking. See follow-on
# action to manually fix this up.
- name: Checkout - might be merge commit!
- uses: actions/checkout@v1
+ uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
+ with:
+ fetch-depth: 0
# Use last commit of branch, not potential merge commit!
#
# This works perfectly well on pull requests within forked repos, but
# does not know the branch (from the forked repo). Argh.
# with:
# ref: ${{ github.head_ref }} # check out branch
-
+ # The action above is supposed to do this for us, but it doesn't appear to stick.
+ - run: /usr/bin/git config --global --add safe.directory /__w/suricata/suricata
# Manually ignore the merge commit as none of the with/ref things tried
# with actions/checkout seemed to work for pull requests from forks into
# the OISF repo.