Skip to content

Commit c8dab71

Browse files
authored
Merge pull request #1827 from NASA-AMMOS/dev/small-fixes
Small fixes to action server port parsing, github workflows
2 parents 589113a + dc6e458 commit c8dab71

5 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/pgcmp.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ on:
66
- "deployment/hasura/migrations/**"
77
- "deployment/postgres-init-db/sql/**"
88
- ".github/workflows/pgcmp.yml"
9-
- ".github/workflows/scripts/compareDatabases*"
9+
- ".github/scripts/compareDatabases*"
10+
- ".github/scripts/explanations_*"
1011
push:
1112
paths:
1213
- "deployment/hasura/migrations/**"
1314
- "deployment/postgres-init-db/sql/**"
1415
- ".github/workflows/pgcmp.yml"
15-
- ".github/workflows/scripts/compareDatabases*"
16+
- ".github/scripts/compareDatabases*"
17+
- ".github/scripts/explanations_*"
1618
branches:
1719
- develop
1820
- dev-[0-9]+.[0-9]+.[0-9]+

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140

141141
scan:
142142
runs-on: ubuntu-latest
143-
needs: containers
143+
needs: [init, containers]
144144
if: needs.init.outputs.SHOULD_PUBLISH_IMAGES == 'true'
145145
strategy:
146146
matrix:
@@ -159,14 +159,20 @@ jobs:
159159
steps:
160160
- uses: actions/checkout@v6
161161

162+
- name: Extract metadata for ${{ matrix.image }}
163+
id: metadata-step
164+
uses: docker/metadata-action@v5
165+
with:
166+
images: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ matrix.image }}
167+
162168
- name: Scan ${{ matrix.image }} for vulnerabilities
163169
# pinned to commit for release https://github.com/aquasecurity/trivy-action/releases/tag/v0.24.0
164170
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
165171
env:
166172
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
167173
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db
168174
with:
169-
image-ref: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ matrix.image }}:develop
175+
image-ref: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ matrix.image }}:${{ steps.metadata-step.outputs.version }}
170176
ignore-unfixed: true
171177
exit-code: "1"
172178
severity: "CRITICAL"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
**/target/*
2424
.*.swp
2525
.tags
26+
.codex
2627

2728
### Build ###
2829
.m2

action-server/src/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class ActionsDbManager {
1717
logger.info(`Creating PG pool`);
1818
ActionsDbManager.pool = new pg.Pool({
1919
host: AERIE_DB_HOST,
20-
port: parseInt(AERIE_DB_PORT, 5432),
20+
port: parseInt(AERIE_DB_PORT),
2121
database: AERIE_DB,
2222
user: ACTION_DB_USER,
2323
password: ACTION_DB_PASSWORD,

action-server/src/threads/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function getDbPool() {
2020

2121
dbPool = new pg.Pool({
2222
host: AERIE_DB_HOST,
23-
port: parseInt(AERIE_DB_PORT, 5432),
23+
port: parseInt(AERIE_DB_PORT),
2424
database: AERIE_DB,
2525
user: ACTION_DB_USER,
2626
password: ACTION_DB_PASSWORD,

0 commit comments

Comments
 (0)