Skip to content

Commit 616fbdb

Browse files
authored
chore: remove deprecated devDep for root-ca script (#2342)
## Description Noticed in reviewing our renovate dashboard that `@types/csv-parse` is noted as deprecated now (types directly in the `csv-parse` package): https://www.npmjs.com/package/@types/csv-parse. This PR removes it and adds an extra action for addlicense on the generated CAs.
1 parent 5128ffb commit 616fbdb

3 files changed

Lines changed: 14 additions & 18 deletions

File tree

scripts/root-ca-retriever/package-lock.json

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/root-ca-retriever/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"typescript": "^5.3.3",
1313
"vitest": "^4.0.0",
1414
"@types/adm-zip": "^0.5.7",
15-
"@types/csv-parse": "^1.1.12",
1615
"adm-zip": "^0.5.16",
1716
"csv-parse": "^6.1.0",
1817
"js-yaml": "^4.1.1",

tasks.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 Defense Unicorns
1+
# Copyright 2024-2026 Defense Unicorns
22
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
33

44
variables:
@@ -204,3 +204,16 @@ tasks:
204204
description: "Updates CA certificates"
205205
actions:
206206
- cmd: npx ts-node --project scripts/root-ca-retriever/tsconfig.json scripts/root-ca-retriever/index.ts
207+
- description: "Add license headers to generated CA configmap"
208+
shell:
209+
darwin: bash
210+
linux: bash
211+
cmd: |
212+
# check for addlicense bin
213+
if [ -x "$HOME/go/bin/addlicense" ]; then
214+
echo "addlicense installed in $HOME/go/bin"
215+
else
216+
echo "Error: addlicense is not installed in $HOME/go/bin" >&2
217+
exit 1
218+
fi
219+
$HOME/go/bin/addlicense -l "AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial" -s=only -v -c "Defense Unicorns" src/pepr/uds-operator-config/templates/uds-ca-certs.yaml

0 commit comments

Comments
 (0)