-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from ropable/master
Update several user-facing views, use Alpine-based Dockerfile, bump dependencies, bump project dependencies.
- Loading branch information
Showing
40 changed files
with
2,619 additions
and
3,195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,11 @@ name: "Build Docker image and run Trivy vulnerability scan" | |
|
||
on: | ||
push: | ||
# Publish `master` as `latest` image. | ||
branches: [ master ] | ||
# Publish `2.*` tags as releases. | ||
tags: [ '2.*' ] | ||
branches: [master, dev] | ||
# Publish tagged commits as releases. | ||
tags: ["*"] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [master] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
@@ -77,15 +76,18 @@ jobs: | |
# Run vulnerability scan on built image | ||
#---------------------------------------------- | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@master | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db | ||
with: | ||
scan-type: 'image' | ||
scan-type: "image" | ||
scanners: "vuln" | ||
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
vuln-type: 'os,library' | ||
severity: 'HIGH,CRITICAL' | ||
format: 'sarif' | ||
output: 'trivy-results.sarif' | ||
vuln-type: "os,library" | ||
severity: "HIGH,CRITICAL" | ||
format: "sarif" | ||
output: "trivy-results.sarif" | ||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: 'trivy-results.sarif' | ||
sarif_file: "trivy-results.sarif" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Scan project for secrets & sensitive information" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
secret-scan: | ||
name: Scan project for secrets | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Secret scanning | ||
uses: trufflesecurity/trufflehog@main | ||
with: | ||
base: "" | ||
head: ${{ github.ref_name }} | ||
extra_args: --only-verified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# syntax=docker/dockerfile:1 | ||
# Prepare the base environment. | ||
FROM python:3.12.6-alpine AS builder_base_ibms | ||
FROM python:3.12.8-alpine AS builder_base | ||
LABEL [email protected] | ||
LABEL org.opencontainers.image.source=https://github.com/dbca-wa/ibms | ||
|
||
|
@@ -17,10 +17,10 @@ RUN addgroup -g ${GID} appuser \ | |
&& adduser -H -D -u ${UID} -G appuser appuser | ||
|
||
# Install Python libs using Poetry. | ||
FROM builder_base_ibms AS python_libs_ibms | ||
FROM builder_base AS python_libs_ibms | ||
WORKDIR /app | ||
COPY poetry.lock pyproject.toml ./ | ||
ARG POETRY_VERSION=1.8.3 | ||
ARG POETRY_VERSION=1.8.5 | ||
RUN pip install --no-cache-dir --root-user-action=ignore poetry==${POETRY_VERSION} \ | ||
&& poetry config virtualenvs.create false \ | ||
&& poetry install --no-interaction --no-ansi --only main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.