Skip to content

feat(asf): link to the source repository in the footer - #310

Open
Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/213-link-source-repo
Open

Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/213-link-source-repo

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown

Summary

The site had no link to its own repository, so there was nothing to point at from the deployment.

A sourceURL setting renders a "Source code" link in the footer, in the same grey style as the rest of the footer text.

Changes

  • views/foot.pug: render the link when conf.sourceURL is set.
  • config/conf.js: set sourceURL to https://github.com/apache/security-vulnogram.

Deployments that do not set sourceURL keep the current footer.

Testing

  • VULNOGRAM_TLS_CERT=unittest/cert.pem VULNOGRAM_TLS_KEY=unittest/key.pem npm run unittest passes.

Closes #213

@raboof

raboof commented Nov 19, 2026

Copy link
Copy Markdown
Member

wouldn't it make sense to propose this upstream first? (https://github.com/Vulnogram/Vulnogram)

@Anurag-S1ngh

Copy link
Copy Markdown
Author

The change is generic: sourceURL is optional, so deployments that do not set it keep the current footer, and this repo only sets the value in config/conf.js. I can raise it upstream in Vulnogram/Vulnogram with the foot.pug change, keep this PR as the Apache config value once it lands, and link the upstream PR here.

Also, the unit tests and CodeQL runs are waiting for approval on the workflow.

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.

Link to this repo from the cveprocess.a.o website

2 participants