updating dockerfile for best practices
This commit is contained in:
@@ -13,6 +13,20 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# - name: Run Trivy vulnerability scanner in repo mode
|
||||||
|
# uses: aquasecurity/trivy-action@v0.36.0
|
||||||
|
# with:
|
||||||
|
# scan-type: 'fs'
|
||||||
|
# ignore-unfixed: true
|
||||||
|
# format: 'sarif'
|
||||||
|
# output: 'trivy-results.sarif'
|
||||||
|
# severity: 'CRITICAL'
|
||||||
|
|
||||||
|
# - name: Upload Trivy scan results to GitHub Security tab
|
||||||
|
# uses: github/codeql-action/upload-sarif@v4
|
||||||
|
# with:
|
||||||
|
# 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
|
||||||
|
|
||||||
|
|||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"trivy.secretScanning": true
|
||||||
|
}
|
||||||
+3
-1
@@ -1,6 +1,8 @@
|
|||||||
FROM mcr.microsoft.com/powershell
|
FROM mcr.microsoft.com/powershell
|
||||||
|
|
||||||
|
USER 1000:1000
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
ADD ["Start-DoneTickNotifier.ps1", "/data/"]
|
COPY ["Start-DoneTickNotifier.ps1", "/data/"]
|
||||||
|
|
||||||
ENTRYPOINT ["pwsh", "-Command", "/data/Start-DoneTickNotifier.ps1"]
|
ENTRYPOINT ["pwsh", "-Command", "/data/Start-DoneTickNotifier.ps1"]
|
||||||
Reference in New Issue
Block a user