Skip to content

Commit

Permalink
refac(back): fluidattacks#1378 deprecate bandit
Browse files Browse the repository at this point in the history
- Deprecate secure python with bandit
as ruff replaces it
- Remove jobs from pipeline
- Remove documentation

Signed-off-by: Daniel Salazar <[email protected]>
  • Loading branch information
dsalaza4 committed Dec 12, 2024
1 parent 37bc7bf commit 120f8fa
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 368 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -397,22 +397,6 @@ jobs:
- name: /secretsForGpgFromEnv/example
run: nix-env -if . && m . /secretsForGpgFromEnv/example

linux_securePythonWithBandit_cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: docker://docker.io/nixos/nix@sha256:c3db4c484f6b1ee6c9bb8ca90307cfbeca8ef88156840911356a677eeaff4845
name: /securePythonWithBandit/cli
with:
args: sh -c "chown -R root:root /github/workspace && nix-env -if . && m . /securePythonWithBandit/cli"
macos_securePythonWithBandit_cli:
runs-on: macos-latest
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac
- name: /securePythonWithBandit/cli
run: nix-env -if . && m . /securePythonWithBandit/cli

linux_taintTerraform_module:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -571,26 +571,6 @@ jobs:
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

linux_securePythonWithBandit_cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: docker://docker.io/nixos/nix@sha256:c3db4c484f6b1ee6c9bb8ca90307cfbeca8ef88156840911356a677eeaff4845
name: /securePythonWithBandit/cli
with:
args: sh -c "chown -R root:root /github/workspace && nix-env -if . && m . /securePythonWithBandit/cli"
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
macos_securePythonWithBandit_cli:
runs-on: macos-latest
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac
- name: /securePythonWithBandit/cli
run: nix-env -if . && m . /securePythonWithBandit/cli
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

linux_taintTerraform_module:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 0 additions & 1 deletion docs/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ nav:
- api/extensions/containers.md
- api/extensions/fetchers.md
- api/extensions/format-conversion.md
- api/extensions/node.js.md
- api/extensions/others.md
- api/extensions/python.md
- api/extensions/ruby.md
Expand Down
32 changes: 0 additions & 32 deletions docs/src/api/builtins/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,35 +64,3 @@ Example:
```bash
m . /secureKubernetesWithRbacPolice/makes
```

## securePythonWithBandit

Secure Python code
with [Bandit](https://github.com/PyCQA/bandit).

Types:

- securePythonWithBandit (`attrsOf projectType`): Optional.
Definitions of directories of python packages/modules to lint.
Defaults to `{ }`.
- projectType (`submodule`):
- target (`str`):
Relative path to the package/module.

Example:

=== "makes.nix"

```nix
{
securePythonWithBandit = {
cli.target = "/src/cli";
};
}
```

=== "Invocation"

```bash
m . /securePythonWithBandit/cli
```
1 change: 0 additions & 1 deletion makes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@
};
};
secretsForTerraformFromEnv = { example = { test = "VAR_NAME"; }; };
securePythonWithBandit = { cli.target = "/src/cli/main"; };
taintTerraform = {
modules = {
module = {
Expand Down
2 changes: 0 additions & 2 deletions src/args/agnostic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ let
inherit (__nixpkgs__.lib) removePrefix;
secureKubernetesWithRbacPolice =
import ./secure-kubernetes-with-rbac-police/default.nix self;
securePythonWithBandit =
import ./secure-python-with-bandit/default.nix self;
sortAscii = builtins.sort (a: b: a < b);
sortAsciiCaseless = builtins.sort
(a: b: __nixpkgs__.lib.toLower a < __nixpkgs__.lib.toLower b);
Expand Down
8 changes: 0 additions & 8 deletions src/args/secure-python-with-bandit/builder.sh

This file was deleted.

13 changes: 0 additions & 13 deletions src/args/secure-python-with-bandit/default.nix

This file was deleted.

234 changes: 0 additions & 234 deletions src/args/secure-python-with-bandit/poetry.lock

This file was deleted.

16 changes: 0 additions & 16 deletions src/args/secure-python-with-bandit/pyproject.toml

This file was deleted.

1 change: 0 additions & 1 deletion src/evaluator/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
(import ./secrets-for-kubernetes-config-from-aws/default.nix args)
(import ./secrets-for-terraform-from-env/default.nix args)
(import ./secure-kubernetes-with-rbac-police/default.nix args)
(import ./secure-python-with-bandit/default.nix args)
(import ./taint-terraform/default.nix args)
(import ./test-license/default.nix args)
(import ./test-terraform/default.nix args)
Expand Down
Loading

0 comments on commit 120f8fa

Please sign in to comment.