Skip to content

Commit

Permalink
ci: reduce configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
VGervasio committed Mar 19, 2024
1 parent 6a58ca0 commit 38a34d7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/scripts/getBlackduckArgs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const [, , filterPackage, phase = "DEVELOPMENT"] = process.argv;
const outputPackages = "code-editor,core,icons,lab,shared,styles,uno-preset,viz"
.split(",")
.filter((p) => p !== filterPackage)
.map((p) => `/workdir/packages/${p}`)
.join(",");

const arguments = `
--detect.npm.dependency.types.excluded=DEV
--detect.excluded.detector.types=LERNA
--detect.project.version.phase=${phase}
--detect.detector.search.continue=true
--detect.project.version.update=true
--detect.detector.search.depth=1
--detect.excluded.directories=${outputPackages}
`;

console.log(arguments.replace(/\n/g, " ").trim());
6 changes: 4 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
strategy:
fail-fast: false
matrix:
PACKAGE: ["code-editor", "core", "icons", "lab", "shared", "styles", "uno-preset", "viz"]
PACKAGE: ["code-editor", "core", "icons"]

#, "lab", "shared", "styles", "uno-preset", "viz"]

steps:
- name: Checkout
Expand Down Expand Up @@ -66,7 +68,7 @@ jobs:

- name: Load blackduck project properties
shell: bash
run: echo "BLACKDUCK_ARGS=$(awk '{print}' ORS=' ' .github/security-configurations/blackduck-${{ matrix.PACKAGE }}.properties)" >> $GITHUB_ENV
run: echo "BLACKDUCK_ARGS=$(.github/scripts/getBlackduckArgs ${{ matrix.PACKAGE }})" >> $GITHUB_ENV

- name: Blackduck Scan
uses: lumada-common-services/[email protected]
Expand Down

0 comments on commit 38a34d7

Please sign in to comment.