Skip to content

Commit

Permalink
refac(back): fluidattacks#1378 deprecate calculate scorecard
Browse files Browse the repository at this point in the history
- Deprecate calculate scorecard
as it easily breaks with false positives
and we're not using it
- Remove jobs from pipeline
- Remove documentation

Signed-off-by: Daniel Salazar <[email protected]>
  • Loading branch information
dsalaza4 committed Dec 12, 2024
1 parent 10b061b commit 71f1239
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 245 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,6 @@ jobs:
- name: __all__
run: nix-env -if . && m . __all__

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

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

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

linux_deployTerraform_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 @@ -119,7 +119,6 @@ nav:
- api/builtins/format.md
- api/builtins/framework-configuration.md
- api/builtins/lint.md
- api/builtins/monitoring.md
- api/builtins/performance.md
- api/builtins/secrets.md
- api/builtins/security.md
Expand Down
97 changes: 0 additions & 97 deletions docs/src/api/builtins/monitoring.md

This file was deleted.

4 changes: 0 additions & 4 deletions makes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
};
};
};
calculateScorecard = {
enable = true;
target = "github.com/fluidattacks/makes";
};
deployContainer = {
makesAmd64 = {
credentials = {
Expand Down
1 change: 0 additions & 1 deletion src/args/agnostic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ let
attrsMerge = builtins.foldl' __nixpkgs__.lib.recursiveUpdate { };
attrsOptional = __nixpkgs__.lib.optionalAttrs;
calculateCvss3 = import ./calculate-cvss-3/default.nix self;
calculateScorecard = import ./calculate-scorecard/default.nix self;
chunks = import ./chunks/default.nix self;
computeOnAwsBatch = import ./compute-on-aws-batch/default.nix self;
deployContainer = import ./deploy-container/default.nix self;
Expand Down
17 changes: 0 additions & 17 deletions src/args/calculate-scorecard/default.nix

This file was deleted.

46 changes: 0 additions & 46 deletions src/args/calculate-scorecard/entrypoint.sh

This file was deleted.

36 changes: 0 additions & 36 deletions src/evaluator/modules/calculate-scorecard/default.nix

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 @@ -2,7 +2,6 @@
, toFileJson, ... }@args: {
imports = [
(import ./cache/default.nix args)
(import ./calculate-scorecard/default.nix args)
(import ./compute-on-aws-batch/default.nix args)
(import ./dev/default.nix args)
(import ./deploy-container/default.nix args)
Expand Down

0 comments on commit 71f1239

Please sign in to comment.