Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hof 405 vuln html pdf converter #68

Open
wants to merge 59 commits into
base: master
Choose a base branch
from

Conversation

DivineTaminangHO
Copy link

WHAT ?
updated yarn lock files
and trivy is added to drone.yaml
WHY
to scan the base image
and packages against vulnerabilities

* replaced anchore with trivy
* trivy scans docker base image for vulnerability
@jeff-horton-ho-sas
Copy link

@Jholderdevops The latest image pushed here https://drone-gh.acp.homeoffice.gov.uk/UKHomeOffice/html-pdf-converter/341/1/6 is failing when trying to export PDFs when running the latest container for local development in the ASPeL project. We're seeing the following error logged in the container:

2024-12-02 16:13:26 2024-12-02T16:13:26.388Z - error: html-pdf-converter: Handling error message=Failed to launch the browser process! spawn /app/node_modules/puppeteer/.local-chromium/linux-756035/chrome-linux/chrome ENOENT
2024-12-02 16:13:26 
2024-12-02 16:13:26 
2024-12-02 16:13:26 TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
2024-12-02 16:13:26 , stack=Error: Failed to launch the browser process! spawn /app/node_modules/puppeteer/.local-chromium/linux-756035/chrome-linux/chrome ENOENT
2024-12-02 16:13:26 
2024-12-02 16:13:26 
2024-12-02 16:13:26 TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
2024-12-02 16:13:26 
2024-12-02 16:13:26     at onClose (/app/node_modules/puppeteer/lib/launcher/BrowserRunner.js:159:20)
2024-12-02 16:13:26     at ChildProcess.<anonymous> (/app/node_modules/puppeteer/lib/launcher/BrowserRunner.js:151:82)
2024-12-02 16:13:26     at ChildProcess.emit (node:events:519:28)
2024-12-02 16:13:26     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
2024-12-02 16:13:26     at onErrorNT (node:internal/child_process:484:16)
2024-12-02 16:13:26     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

@Jholderdevops
Copy link

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