From: Jason Ish Date: Mon, 18 Apr 2022 17:21:22 +0000 (-0600) Subject: github-ci: pin checkout action plus other fixes X-Git-Tag: suricata-5.0.9~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ddee1830784eae6ba1290548ff27fe831a182ba;p=thirdparty%2Fsuricata.git github-ci: pin checkout action plus other fixes Fixes to get CI to pass with updates to checkout action. --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 2246f2432e..0d0de69cd8 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -144,7 +144,7 @@ jobs: path: ~/.cargo/registry key: cargo-registry - - uses: actions/checkout@v2 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # Download and extract dependency archives created during prep # job. @@ -207,7 +207,7 @@ jobs: texlive-upquote \ texlive-capt-of \ texlive-needspace \ - - uses: actions/checkout@v2 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 - name: Bundling libhtp run: git clone https://github.com/OISF/libhtp -b 0.5.x - name: Bundling suricata-update @@ -347,7 +347,7 @@ jobs: - run: | cargo install --debug cbindgen echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - uses: actions/checkout@v2 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 - uses: actions/download-artifact@v2 with: name: prep @@ -417,7 +417,7 @@ jobs: - name: Install cbindgen run: cargo install --force --debug --version 0.14.1 cbindgen - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - uses: actions/checkout@v2 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 - uses: actions/download-artifact@v2 with: name: prep @@ -479,7 +479,7 @@ jobs: - name: Install cbindgen run: cargo install --force --debug --version 0.14.1 cbindgen - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - uses: actions/checkout@v2 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 - uses: actions/download-artifact@v2 with: name: prep @@ -549,7 +549,7 @@ jobs: - name: Install cbindgen run: cargo install --force --debug --version 0.14.1 cbindgen - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - uses: actions/checkout@v2 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 - uses: actions/download-artifact@v2 with: name: prep @@ -621,7 +621,7 @@ jobs: - name: Install cbindgen run: cargo install --force --debug --version 0.14.1 cbindgen - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - uses: actions/checkout@v1 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 - uses: actions/download-artifact@v2 with: name: prep @@ -754,7 +754,7 @@ jobs: run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION_KNOWN -y - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - uses: actions/checkout@v2 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 - uses: actions/download-artifact@v2 with: name: prep @@ -818,7 +818,7 @@ jobs: - 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 @@ -874,7 +874,7 @@ jobs: run: cargo install --force --debug --version 0.14.1 cbindgen - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - run: pip3 install PyYAML - - uses: actions/checkout@v1 + - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 - name: Downloading prep archive uses: actions/download-artifact@v2 with: diff --git a/.github/workflows/commits.yml b/.github/workflows/commits.yml index 067284bde2..7f008af8e2 100644 --- a/.github/workflows/commits.yml +++ b/.github/workflows/commits.yml @@ -3,15 +3,20 @@ name: commit-check 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 @@ -42,7 +47,7 @@ jobs: libhiredis-dev \ libjansson-dev \ libevent-dev \ - libevent-pthreads-2.1.6 \ + libevent-pthreads-2.1-7 \ libjansson-dev \ libpython2.7 \ libssl-dev \ @@ -58,7 +63,11 @@ jobs: - 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