We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 236edfc + e022bd4 commit ea4120bCopy full SHA for ea4120b
Dockerfile
@@ -0,0 +1,16 @@
1
+FROM composer:latest
2
+
3
+# add unpriviledged user and
4
+# create directory for the code to be scanned
5
+RUN addgroup -S tool && adduser -S -G tool tool && \
6
+ mkdir -p /opt/mount/
7
8
+# Install phpcs-security-audit
9
+RUN composer global require pheromone/phpcs-security-audit
10
+WORKDIR /tmp
11
+RUN sh ./vendor/pheromone/phpcs-security-audit/symlink.sh
12
13
+# change user
14
+USER tool
15
16
+ENTRYPOINT [ "/tmp/vendor/bin/phpcs", "--standard=/tmp/vendor/pheromone/phpcs-security-audit/example_base_ruleset.xml", "/opt/mount/"]
0 commit comments