removing sast - updated dockerfile for best practies
Build and Push Docker Image / build (push) Successful in 39s
Build and Push Docker Image / build (push) Successful in 39s
This commit is contained in:
@@ -8,27 +8,27 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
# permissions:
|
||||||
contents: read # Required to checkout and read repo files
|
# contents: read # Required to checkout and read repo files
|
||||||
security-events: write # Required to upload SARIF files to Security tab
|
# security-events: write # Required to upload SARIF files to Security tab
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Trivy vulnerability scanner in repo mode
|
# - name: Run Trivy vulnerability scanner in repo mode
|
||||||
uses: aquasecurity/trivy-action@v0.36.0
|
# uses: aquasecurity/trivy-action@v0.36.0
|
||||||
with:
|
# with:
|
||||||
scan-type: 'fs'
|
# scan-type: 'fs'
|
||||||
ignore-unfixed: true
|
# ignore-unfixed: true
|
||||||
format: 'sarif'
|
# format: 'sarif'
|
||||||
output: 'trivy-results.sarif'
|
# output: 'trivy-results.sarif'
|
||||||
severity: 'CRITICAL,HIGH'
|
# severity: 'CRITICAL,HIGH'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
# - name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v4
|
# uses: github/codeql-action/upload-sarif@v4
|
||||||
with:
|
# with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
# sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
+3
-1
@@ -1,11 +1,13 @@
|
|||||||
FROM mcr.microsoft.com/powershell
|
FROM mcr.microsoft.com/powershell
|
||||||
|
|
||||||
|
USER 1000:1000
|
||||||
|
|
||||||
ENV SCHEDULE=60
|
ENV SCHEDULE=60
|
||||||
ENV GLUETUNFORWARDEDPORTFILE="/tmp/forwarded_port"
|
ENV GLUETUNFORWARDEDPORTFILE="/tmp/forwarded_port"
|
||||||
|
|
||||||
VOLUME /tmp
|
VOLUME /tmp
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
ADD ["Start-QBTGluetunPortMgr.ps1", "/data/"]
|
COPY ["Start-QBTGluetunPortMgr.ps1", "/data/"]
|
||||||
|
|
||||||
ENTRYPOINT ["pwsh", "-Command", "/data/Start-QBTGluetunPortMgr.ps1"]
|
ENTRYPOINT ["pwsh", "-Command", "/data/Start-QBTGluetunPortMgr.ps1"]
|
||||||
Reference in New Issue
Block a user