Skip to content

Commit

Permalink
Merge pull request dbca-wa#416 from ropable/master
Browse files Browse the repository at this point in the history
Remove HTML template fragment caching, additiona cache config settings.
  • Loading branch information
ropable authored Oct 7, 2024
2 parents 347e99a + 3b7ce17 commit 3daeb9b
Show file tree
Hide file tree
Showing 13 changed files with 855 additions and 844 deletions.
1 change: 1 addition & 0 deletions .github/workflows/image-build-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
uses: aquasecurity/trivy-action@master
with:
scan-type: 'image'
scanners: 'vuln'
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
vuln-type: 'os,library'
severity: 'HIGH,CRITICAL'
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/secret-scan.yml
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ repos:
# For running trufflehog in docker, use the following entry instead:
# entry: bash -c 'docker run --rm -v "$(pwd):/workdir" -i --rm trufflesecurity/trufflehog:latest git file:///workdir --since-commit HEAD --only-verified --fail'
language: system
stages: ["commit", "push"]
stages: ["pre-commit", "pre-push"]
10 changes: 10 additions & 0 deletions kustomize/overlays/prod/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,13 @@ spec:
secretKeyRef:
name: prs-env-prod
key: REDIS_CACHE_HOST
- name: API_RESPONSE_CACHE_SECONDS
valueFrom:
secretKeyRef:
name: prs-env-prod
key: API_RESPONSE_CACHE_SECONDS
- name: CACHE_MIDDLEWARE_SECONDS
valueFrom:
secretKeyRef:
name: prs-env-prod
key: CACHE_MIDDLEWARE_SECONDS
2 changes: 1 addition & 1 deletion kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ patches:
- path: typesense_service_patch.yaml
images:
- name: ghcr.io/dbca-wa/prs
newTag: 2.5.58
newTag: 2.5.59
10 changes: 10 additions & 0 deletions kustomize/overlays/uat/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,13 @@ spec:
secretKeyRef:
name: prs-env-uat
key: REDIS_CACHE_HOST
- name: API_RESPONSE_CACHE_SECONDS
valueFrom:
secretKeyRef:
name: prs-env-uat
key: API_RESPONSE_CACHE_SECONDS
- name: CACHE_MIDDLEWARE_SECONDS
valueFrom:
secretKeyRef:
name: prs-env-uat
key: CACHE_MIDDLEWARE_SECONDS
258 changes: 131 additions & 127 deletions poetry.lock

Large diffs are not rendered by default.

457 changes: 262 additions & 195 deletions prs2/referral/templates/referral/referral_detail.html

Large diffs are not rendered by default.

Loading

0 comments on commit 3daeb9b

Please sign in to comment.