Skip to content

chore: add license headers and CI - #2929

Draft
cabljac wants to merge 3 commits into
masterfrom
next
Draft

chore: add license headers and CI#2929
cabljac wants to merge 3 commits into
masterfrom
next

Conversation

@cabljac

@cabljac cabljac commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

dependabot Bot and others added 3 commits July 20, 2026 20:50
…y with 12 updates

Bumps the version-minor-and-patch group with 12 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.4.9` | `29.4.11` |
| [@genkit-ai/google-genai](https://github.com/genkit-ai/genkit/tree/HEAD/js/plugins/google-genai) | `1.37.0` | `1.39.0` |
| [@types/express-serve-static-core](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express-serve-static-core) | `4.19.8` | `4.19.9` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.19.39` | `20.19.43` |
| [genkit](https://github.com/genkit-ai/genkit/tree/HEAD/js/genkit) | `1.33.0` | `1.39.0` |
| [js-yaml](https://github.com/nodeca/js-yaml) | `3.14.2` | `3.15.0` |
| [nodemailer](https://github.com/nodemailer/nodemailer) | `9.0.1` | `9.0.3` |
| [smtp-server](https://github.com/nodemailer/smtp-server) | `3.19.1` | `3.19.2` |
| [@types/node-fetch](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node-fetch) | `2.6.4` | `2.6.13` |
| [@genkit-ai/vertexai](https://github.com/genkit-ai/genkit/tree/HEAD/js/plugins/vertexai) | `1.37.0` | `1.39.0` |
| [sharp](https://github.com/lovell/sharp) | `0.34.5` | `0.35.3` |
| [nanoid](https://github.com/ai/nanoid) | `5.1.9` | `5.1.16` |



Updates `ts-jest` from 29.4.9 to 29.4.11
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](kulshekhar/ts-jest@v29.4.9...v29.4.11)

Updates `@genkit-ai/google-genai` from 1.37.0 to 1.39.0
- [Release notes](https://github.com/genkit-ai/genkit/releases)
- [Commits](https://github.com/genkit-ai/genkit/commits/@genkit-ai/google-genai@1.39.0/js/plugins/google-genai)

Updates `@types/express-serve-static-core` from 4.19.8 to 4.19.9
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express-serve-static-core)

Updates `@types/node` from 20.19.39 to 20.19.43
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `genkit` from 1.33.0 to 1.39.0
- [Release notes](https://github.com/genkit-ai/genkit/releases)
- [Commits](https://github.com/genkit-ai/genkit/commits/genkit@1.39.0/js/genkit)

Updates `js-yaml` from 3.14.2 to 3.15.0
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](nodeca/js-yaml@3.14.2...3.15.0)

Updates `nodemailer` from 9.0.1 to 9.0.3
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](nodemailer/nodemailer@v9.0.1...v9.0.3)

Updates `smtp-server` from 3.19.1 to 3.19.2
- [Release notes](https://github.com/nodemailer/smtp-server/releases)
- [Changelog](https://github.com/nodemailer/smtp-server/blob/master/CHANGELOG.md)
- [Commits](nodemailer/smtp-server@v3.19.1...v3.19.2)

Updates `@types/node-fetch` from 2.6.4 to 2.6.13
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node-fetch)

Updates `@genkit-ai/vertexai` from 1.37.0 to 1.39.0
- [Release notes](https://github.com/genkit-ai/genkit/releases)
- [Commits](https://github.com/genkit-ai/genkit/commits/@genkit-ai/vertexai@1.39.0/js/plugins/vertexai)

Updates `sharp` from 0.34.5 to 0.35.3
- [Release notes](https://github.com/lovell/sharp/releases)
- [Commits](lovell/sharp@v0.34.5...v0.35.3)

Updates `nanoid` from 5.1.9 to 5.1.16
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@5.1.9...5.1.16)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.4.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: "@genkit-ai/google-genai"
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: "@types/express-serve-static-core"
  dependency-version: 4.19.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: "@types/node"
  dependency-version: 20.19.43
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: genkit
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: js-yaml
  dependency-version: 3.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: nodemailer
  dependency-version: 9.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: smtp-server
  dependency-version: 3.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: "@types/node-fetch"
  dependency-version: 2.6.13
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: "@genkit-ai/vertexai"
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: sharp
  dependency-version: 0.35.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: nanoid
  dependency-version: 5.1.16
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…n-minor-and-patch-5f24554eda

chore(deps): bump the version-minor-and-patch group across 1 directory with 12 updates
* chore: backfill Apache license headers in ts/js files

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu

* ci: enforce Apache license headers with addlicense

Adds a license job to the Validate workflow that runs google/addlicense
in check mode over tracked ts/js files. Run npm run license:fix locally
to add missing headers.

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu

* ci: pin validate workflow actions to commit SHAs

Required by zizmor unpinned-uses mandatory policy.

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu

* ci: restrict validate workflow to read-only permissions

Resolves zizmor excessive-permissions finding.

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu

* chore: harden addlicense script

NUL-separated file list for filenames with special characters, and
reject unknown modes instead of defaulting to fix.

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu
@wiz-9635d3485b

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 3 High
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 3 High

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request primarily adds Apache 2.0 license headers to various source files across the repository and updates several dependencies, including @types/node, ts-jest, and sharp. The review identified a few areas for improvement: the license check script should be updated to include shell scripts, and there is a version mismatch between the @types/node dependency and the Node.js engine target in delete-user-data/functions/package.json.

Comment thread scripts/addlicense.sh
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Checks (default) or adds Apache license headers on tracked .ts/.js files

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Update the comment to reflect that .sh files are also checked.

Suggested change
# Checks (default) or adds Apache license headers on tracked .ts/.js files
# Checks (default) or adds Apache license headers on tracked .ts/.js/.sh files

Comment thread scripts/addlicense.sh
exit 1
fi

git ls-files -z -- '*.ts' '*.js' \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since scripts/addlicense.sh itself is a shell script and contains a license header, it is recommended to include *.sh files in the addlicense check to ensure all script files are covered.

Suggested change
git ls-files -z -- '*.ts' '*.js' \
git ls-files -z -- '*.ts' '*.js' '*.sh' \

"@types/express-serve-static-core": "4.19.8",
"@types/node": "^22.0.0",
"@types/express-serve-static-core": "4.19.9",
"@types/node": "^20.19.43",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Downgrading @types/node to ^20.19.43 while the engine target is set to 22 (line 34) creates a version mismatch. It is recommended to keep @types/node aligned with the major version of the target Node.js runtime to prevent missing type definitions for newer APIs.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

3 similar comments
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants