Skip to content

Commit

Permalink
test: ignore vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L committed Jan 31, 2024
1 parent 49446d9 commit 75b70e4
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 2 deletions.
66 changes: 65 additions & 1 deletion .github/workflows/ckb-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,77 @@ defaults:

jobs:
ckb-contracts-check:
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-gnu
- i686-unknown-linux-gnu
- arm-unknown-linux-gnueabihf
bindgen:
- true
- false
library:
- name: boringssl
version: e6489902b7fb692875341b8ab5e57f0515f47bc1
- name: openssl
version: vendored
- name: openssl
version: 3.2.0
dl-path: /
- name: openssl
version: 1.1.1w
dl-path: /
- name: openssl
version: 1.1.0l
dl-path: /old/1.1.0
- name: openssl
version: 1.0.2u
dl-path: /old/1.0.2
- name: openssl
version: 1.0.1u
dl-path: /old/1.0.1
include:
- target: x86_64-unknown-linux-gnu
bindgen: true
library:
name: libressl
version: 2.5.5
- target: x86_64-unknown-linux-gnu
bindgen: true
library:
name: libressl
version: 3.7.3
- target: x86_64-unknown-linux-gnu
bindgen: true
library:
name: libressl
version: 3.8.2
- target: x86_64-unknown-linux-gnu
bindgen: false
library:
name: libressl
version: 2.5.5
- target: x86_64-unknown-linux-gnu
bindgen: false
library:
name: libressl
version: 3.7.3
- target: x86_64-unknown-linux-gnu
bindgen: false
library:
name: libressl
version: 3.8.2
name: ${{ matrix.target }}-${{ matrix.library.name }}-${{ matrix.library.version }}-${{ matrix.bindgen }}
runs-on: ubuntu-latest
env:
OPENSSL_DIR: /opt/openssl
steps:
- uses: actions/checkout@v2
- name: check audit
run: |
cargo install --force cargo-audit
for c in $(ls contracts); do echo "enter $c"; cd contracts/$c; cargo audit; echo "audit done"; cd ../..; done
for c in $(ls contracts); do echo "enter $c"; cd contracts/$c; cargo audit --ignore RUSTSEC-2021-0103; echo "audit done"; cd ../..; done
- name: Cache cargo crate and target
id: cache-contract-target
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion ckb-contracts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fmt:

update-and-audit:
cargo update
for c in $$(ls contracts); do echo "enter $$c"; cd contracts/$$c; cargo update; cargo audit; echo "update and audit scan done"; cd ../..; done
for c in $$(ls contracts); do echo "enter $$c"; cd contracts/$$c; cargo update; cargo audit --ignore RUSTSEC-2021-0103; echo "update and audit scan done"; cd ../..; done

build-contract:
capsule build
Expand Down

0 comments on commit 75b70e4

Please sign in to comment.