Skip to content

Conversation

@chadlwilson
Copy link
Collaborator

@chadlwilson chadlwilson commented Jan 27, 2026

Description of Change

URGENT: #8254 had a missing trailing quote in the syntax for creating the published suppressions so the current published file is not well formed XML and will be failing. Gulp.

I was deliberately testing it via #8257 (it's a real FP) to make sure it was OK, and noticed I'd broken it.

This PR should fix it (and tweak the indents slightly; as I hadn't noticed an else block in the approvals workflow)

See https://dependency-check.github.io/DependencyCheck/suppressions/publishedSuppressions.xml

image

Generated suppressions - ✅ 8750da5
Published suppressions - ❌ 593b647

Related issues

Have test cases been added to cover the new functionality?

no

…ssions (and HTML template)

Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
@boring-cyborg boring-cyborg bot added core changes to core documentation site documentation labels Jan 27, 2026
@chadlwilson chadlwilson changed the title fix: Fix published/hosted suppressions namespace header and indent fix: Correct published/hosted suppressions namespace header and indent Jan 27, 2026
@chadlwilson
Copy link
Collaborator Author

If @jeremylong or @nhumblot are around a quick review and/or merge would be appreciated, since the hosted suppressions are currently broken (by me) 😬😬

Copy link
Collaborator

@nhumblot nhumblot left a comment

Choose a reason for hiding this comment

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

Hi @chadlwilson

Thank you very much for preparing this PR! I just checked from my phone. Looks ok to me, I'm going to merge. If things continue to not work, I can look at it in a few hours

@nhumblot nhumblot merged commit 460cc5c into dependency-check:main Jan 27, 2026
14 checks passed
@nhumblot nhumblot added this to the 12.2.1 milestone Jan 27, 2026
@nhumblot
Copy link
Collaborator

TODO (action @nhumblot ): create a task to see how we can improve our validation in the CI

@chadlwilson chadlwilson deleted the fix-fp-syntax branch January 27, 2026 17:21
@chadlwilson
Copy link
Collaborator Author

Yeah … xml inside JavaScript inside yaml isn’t exactly the best DevEx 😄

@chadlwilson
Copy link
Collaborator Author

Created #8260 to verify (and correct the published file.

Looks ok now.

generated: cecc46d

published: 571286c

@chadlwilson
Copy link
Collaborator Author

TODO (action @nhumblot ): create a task to see how we can improve our validation in the CI

Assuming GitHub script is the way forward, probably best to at least source control all of the GitHub script content separately as JS files: https://github.com/actions/github-script?tab=readme-ov-file#run-a-separate-file

That way you avoid the yaml indent problems; can get IDE support for the JS (and probably XMl-in-a-string) as well as theoretically write unit tests for the GitHub script, with some mocking/stubbing, and even factor out the XML pieces into JS templates or something simple.

I can probably submit a PR to at least get us going with the source controlling.

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

Labels

core changes to core documentation site documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positives caused by being unable to parse the hosted suppressions data file since 27 Jan 16:14 UTC

2 participants