Skip to content

Commit

Permalink
added rust lint & test to ci, added debug feature for log info
Browse files Browse the repository at this point in the history
added cargo audit for dep check

removed unused, added check for unused in ci

removed crit vulns

migrated to neon 0.10

returned back warnings as errors

updated secrets baseline

switched to npm run test
  • Loading branch information
arhamj committed Jan 10, 2024
1 parent 85e40f8 commit 263ef18
Show file tree
Hide file tree
Showing 15 changed files with 302 additions and 329 deletions.
14 changes: 10 additions & 4 deletions .appsec/secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@
},
{
"path": "detect_secrets.filters.heuristic.is_templated_secret"
},
{
"path": "detect_secrets.filters.regex.should_exclude_file",
"pattern": [
".appsec/secrets.baseline"
]
}
],
"results": {
Expand All @@ -118,23 +124,23 @@
"filename": "crypto/src/lib.rs",
"hashed_secret": "1832d0a52b8a9ac5b19d14508bdc1277f5c12532",
"is_verified": false,
"line_number": 163,
"line_number": 164,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "crypto/src/lib.rs",
"hashed_secret": "ff998abc1ce6d8f01a675fa197368e44c8916e9c",
"is_verified": false,
"line_number": 177,
"line_number": 178,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "crypto/src/lib.rs",
"hashed_secret": "169f26ea855b9ee9d5e4cc679e50077af694832e",
"is_verified": false,
"line_number": 184,
"line_number": 185,
"is_secret": false
}
],
Expand Down Expand Up @@ -421,5 +427,5 @@
}
]
},
"generated_at": "2023-11-28T01:09:42Z"
"generated_at": "2023-12-12T16:52:58Z"
}
19 changes: 19 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cache:
stages:
- prepare
- build
- test
- appsec

# Prepare job: Install Node.js dependencies
Expand Down Expand Up @@ -45,3 +46,21 @@ lint-job:
- echo "Running ESlint..."
- npm run lint
- echo "Running ESlint complete."

run-test:
stage: test
script:
- npm run test

rust-lint:
stage: build
script:
- cargo clippy --all-targets --all-features -- -D warnings
- RUSTFLAGS=-Wunused-crate-dependencies cargo build

rust-audit:
stage: appsec
before_script:
- cargo install cargo-audit
script:
- cargo audit
Loading

0 comments on commit 263ef18

Please sign in to comment.