Skip to content

Commit 79a3764

Browse files
authored
fix: 🐛 Add codemeta 2.0 schema to dockerfile + validate new license entries (#180)
1 parent feaa9ca commit 79a3764

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

bot/compliance-checks/license/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ export async function updateLicenseDatabase(repository, license) {
207207
logwatch.info(
208208
`Creating new license entry for repo: ${repository.name} (ID: ${repository.id})`
209209
);
210+
// If license exists in repo, validate it (handles NOASSERTION/custom cases)
211+
if (license.status) {
212+
({ licenseId, licenseContent, licenseContentEmpty } = validateLicense(
213+
license,
214+
null
215+
));
216+
}
210217
existingLicense = await dbInstance.licenseRequest.create({
211218
data: {
212219
identifier: createId(),

validator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN pip install --no-cache-dir -r requirements.txt
1313

1414
# Copy application files
1515
COPY apis ./apis
16-
COPY config.py app.py entrypoint.sh codemeta-schema.json ./
16+
COPY config.py app.py entrypoint.sh codemeta-schema.json codemeta-schema2.0.json ./
1717

1818
# Optional: Ensure the entrypoint script is executable
1919
RUN chmod +x entrypoint.sh

0 commit comments

Comments
 (0)