diff --git a/.github/workflows/run_dep_sec_scan.yml b/.github/workflows/run_dep_sec_scan.yml new file mode 100644 index 0000000..d6102df --- /dev/null +++ b/.github/workflows/run_dep_sec_scan.yml @@ -0,0 +1,21 @@ +name: Phylum_analyze +on: pull_request + +jobs: + analyze_deps: + name: Analyze dependencies with Phylum + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + + steps: + - name: Checkout the repo + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Analyze dependencies + uses: phylum-dev/phylum-analyze-pr-action@v2 + with: + phylum_token: ${{ secrets.PHYLUM_TOKEN }} \ No newline at end of file diff --git a/.phylum_project b/.phylum_project new file mode 100644 index 0000000..7fada15 --- /dev/null +++ b/.phylum_project @@ -0,0 +1,7 @@ +id: 56a898e0-b14d-4b08-84ee-662a7d164b7e +name: deep_causality +created_at: 2023-09-12T18:34:39.348825+08:00 +group_name: null +lockfiles: +- path: ./Cargo.toml + type: cargo diff --git a/deep_causality/tests/types/context_types/context_graph/extendable_context_tests.rs b/deep_causality/tests/types/context_types/context_graph/extendable_context_tests.rs index cf72268..a35c781 100644 --- a/deep_causality/tests/types/context_types/context_graph/extendable_context_tests.rs +++ b/deep_causality/tests/types/context_types/context_graph/extendable_context_tests.rs @@ -6,7 +6,8 @@ use deep_causality::prelude::*; fn get_context<'l>() -> BaseContext<'l> { let id = 1; let name = "base context"; - Context::with_capacity(id, name, 10) + let capacity = 10; // adjust as needed + Context::with_capacity(id, name, capacity) } #[test]