Skip to content

Commit

Permalink
Merge branch 'main' into rfc-migrate-sql-views-procs-vol-app
Browse files Browse the repository at this point in the history
  • Loading branch information
fibble authored Dec 6, 2024
2 parents 98b6d83 + 909e697 commit c8a671d
Show file tree
Hide file tree
Showing 25 changed files with 4,173 additions and 1,507 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ jobs:
id: init
run: terraform init -no-color -input=false -upgrade

- name: Get Current Versions from Terraform State
id: get_current_versions
run: |
terraform output -json > outputs.json || true
if [ -s outputs.json ] && [ "$(jq -r 'length' outputs.json)" -gt 0 ]; then
jq -r 'to_entries[] | select(.key | startswith("deployed_")) | "\(.key | ltrimstr("deployed_"))=\(.value.value // "")"' outputs.json >> $GITHUB_OUTPUT
else
echo "No outputs found, could be first run"
fi
- name: Select workspace
if: ${{ inputs.workspace }}
run: terraform workspace select -or-create ${{ inputs.workspace }}
Expand Down Expand Up @@ -277,16 +287,6 @@ jobs:
})
}
- name: Get Current Versions from Terraform State
id: get_current_versions
run: |
terraform output -json > outputs.json
echo "api_image_tag=$(jq -r '.api_image_tag.value' outputs.json)" >> $GITHUB_OUTPUT
echo "cli_image_tag=$(jq -r '.cli_image_tag.value' outputs.json)" >> $GITHUB_OUTPUT
echo "selfserve_image_tag=$(jq -r '.selfserve_image_tag.value' outputs.json)" >> $GITHUB_OUTPUT
echo "internal_image_tag=$(jq -r '.internal_image_tag.value' outputs.json)" >> $GITHUB_OUTPUT
echo "assets_version=$(jq -r '.assets_version.value' outputs.json)" >> $GITHUB_OUTPUT
- name: Apply
id: apply
if: ${{ inputs.apply }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
cache-to: type=gha,mode=max,scope=${{ inputs.project }}

- name: Scan
uses: aquasecurity/trivy-action@0.28.0
uses: aquasecurity/trivy-action@0.29.0
with:
image-ref: ${{ steps.build.outputs.imageid }}
skip-dirs: /var/clamav
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Scan
uses: aquasecurity/trivy-action@0.28.0
uses: aquasecurity/trivy-action@0.29.0
with:
exit-code: 1
scan-ref: "infra/docker"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Scan
uses: aquasecurity/trivy-action@0.28.0
uses: aquasecurity/trivy-action@0.29.0
with:
exit-code: 1
scan-ref: "infra/terraform"
Expand Down
6 changes: 3 additions & 3 deletions app/api/config/autoload/config.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
'oauth2' => [
'client_id' => '%olcs_txc_client_id%',
'client_secret' => '%olcs_txc_client_secret%',
'token_url' => '',
'token_url' => '%olcs_txc_token_url%',
'scope' => '%olcs_txc_scope%',
'proxy' => 'http://%shd_proxy%',
'service_name' => 'TransXchange',
Expand All @@ -343,7 +343,7 @@
'nr' => [
// @to-do currently waiting on the actual nr address
'inr_service' => [
'uri' => '',
'uri' => '%olcs_natreg_uri%',
'adapter' => Laminas\Http\Client\Adapter\Curl::class,
'options' => [
'sslcert' => '/opt/dvsa/inr/certs/inr_client_cert.pem',
Expand All @@ -359,7 +359,7 @@
]
],
'repute_url' => [
'uri' => ''
'uri' => '%olcs_natreg_repute%'
],
],

Expand Down
4 changes: 2 additions & 2 deletions app/api/module/Api/src/Entity/Pi/Pi.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ private function isClosableWrittenOutcome()
/**
* Is this a Transport Manager Pi?
*/
public function isTm()
public function isTm(): bool
{
return $this->case->isTm();
return $this->case instanceof CasesEntity && $this->case->isTm();
}

/**
Expand Down
Loading

0 comments on commit c8a671d

Please sign in to comment.