Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Nov 17, 2024
2 parents b93ee8e + 595a640 commit b8f2756
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/dbca_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,18 @@ jobs:
tags: ${{ steps.meta_ckan_worker.outputs.tags }}
build-args: CKAN_IMAGE=${{ steps.meta_ckan.outputs.tags }}

- name: Extract first tag
id: extract_first_tag
run: echo "::set-output name=first_tag::$(echo ${{ steps.meta_ckan.outputs.tags }} | cut -d ',' -f 1)"

- name: Use first tag
run: echo "Using image ref ghcr.io/dbca-wa/ckan-docker-ckan:${{ steps.extract_first_tag.outputs.first_tag }}"

- name: Run Trivy vuln scanner on CKAN image
uses: aquasecurity/[email protected]
with:
scan-type: "image"
image-ref: ${{ steps.meta_ckan.outputs.tags }}
image-ref: ${{ steps.extract_first_tag.outputs.first_tag }}
vuln-type: "os,library"
severity: "HIGH,CRITICAL"
format: "sarif"
Expand Down
4 changes: 4 additions & 0 deletions ckan/docker-entrypoint.d/02_setup_dbca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ if [ ! -f /tmp/container_ready ]; then
ckan -c $CKAN_INI pages initdb
fi

if [[ $CKAN__PLUGINS == *"showcase"* ]]; then
ckan -c $CKAN_INI db upgrade -p showcase
fi

if [[ $CKAN__PLUGINS == *"doi"* ]]; then
ckan -c $CKAN_INI doi initdb
fi
Expand Down

0 comments on commit b8f2756

Please sign in to comment.