Skip to content

Commit 1df4012

Browse files
committed
ci: add audit step
1 parent 167d8d5 commit 1df4012

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/nodejs.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
name: Build Docker images
22
on: push
33
jobs:
4+
audit-npm-dependencies:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout repository
8+
uses: actions/checkout@v3
9+
10+
- name: Install Nodejs
11+
uses: actions/setup-node@v3
12+
with:
13+
node-version: 16.18.0
14+
cache: "npm"
15+
16+
- name: Audit NPM dependencies
17+
run: npm audit
18+
419
build-and-push-docker-images:
520
runs-on: ubuntu-latest
21+
needs: audit-npm-dependencies
622
steps:
723
- name: Checkout repository
824
uses: actions/checkout@v3

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.17.1-alpine
1+
FROM node:16.18.0-alpine
22

33
LABEL maintainer="Johan Book"
44
LABEL title="domain-file-server"

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# file-domain-server
22

3-
_This software has not been tested in regards of security and should not be used
4-
in a production environment_
5-
63
**file-domain-server** is a simplistic Nodejs HTTP file server that serve
74
different folders depending on the HTTP `Host` header. It is mainly intended to
85
run an internal network with its own DNS server.

0 commit comments

Comments
 (0)