Skip to content
Closed

toolkit #8696

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ ENV CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0

WORKDIR /code

# See https://github.com/npm/npm/issues/3497 for --unsafe-perm arg
# Create non-root user for security
RUN useradd -m -s /bin/bash appuser && chown -R appuser:appuser /code

USER appuser

# See https://github.com/npm/npm/issues/3497 for --unsafe-perm arg
# See http://elementalselenium.com/tips/38-headless for running headless
# Here we use option 2, but you might be able to do option 1 in code build. exe is Xvfb not xvfb.
CMD npm install --unsafe-perm && npm run vscode:prepublish && xvfb-run npm test --silent
CMD npm install && npm run vscode:prepublish && xvfb-run npm test --silent
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
Loading