Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment PR - 1510 #2127

Merged
merged 142 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
db6a512
Add application condition financial instrument entity
Abradat Feb 12, 2025
f4e3e3b
Change status date column to timestamp and make expiry date column op…
Abradat Feb 13, 2025
6a7e0f5
Update instrument DTO fields validation
Abradat Feb 13, 2025
1618875
Add application decision condition financial instrument services
Abradat Feb 13, 2025
24e514d
Merge branch 'develop' into feature/ALCS-542-2534
Abradat Feb 13, 2025
8a390ef
Add 'No Data' to date chips
trslater Feb 13, 2025
8ceeff8
Merge pull request #2126 from bcgov/bugfix/ALCS-2486
trslater Feb 13, 2025
53a3ed1
ALCS-2433 Copy amendment uuid
fbarreta Feb 14, 2025
5b1e1cb
Merge pull request #2128 from bcgov/feature/ALCS-2433-copy-uuid-boundary
fbarreta Feb 14, 2025
7e20c23
ALCS-1987 Handle Recon Type states
fbarreta Feb 15, 2025
01c9b42
ALCS-1987 Always display 331 on linked request
fbarreta Feb 18, 2025
c9e17a7
Merge pull request #2130 from bcgov/feature/ALCS-1987-331-fields-adju…
fbarreta Feb 18, 2025
b80e683
Merge pull request #2131 from bcgov/hotfix/ALCS-2546
trslater Feb 18, 2025
a40c9f1
Merge pull request #2121 from bcgov/feature/ALCS-542-2534
Abradat Feb 18, 2025
bc5a725
Merge pull request #2133 from bcgov/backport/hotfix-2552
Abradat Feb 18, 2025
1780ee2
Add quick filters to apps
trslater Feb 18, 2025
d09e9ab
Add quick filters to NOI's
trslater Feb 18, 2025
49233b1
ALCS-2029 Added Alpha index
fbarreta Feb 18, 2025
ba27467
Reset router link from base instead of appending
trslater Feb 18, 2025
b4510b7
ALCS-1987 Custom ng-select adjustments
fbarreta Feb 19, 2025
3236651
Merge pull request #2136 from bcgov/feature/ALCS-1987-UI-tweak
fbarreta Feb 19, 2025
d8f6d58
Merge branch 'develop' into feature/ALCS-2029-sort-applications-condi…
fbarreta Feb 19, 2025
9f15713
Fix modification and reconsideration pills on condition cards
Abradat Feb 19, 2025
4b96cc8
Merge pull request #2138 from bcgov/hotifx/ALCS-2556
Abradat Feb 19, 2025
e19f8e8
ALCS-2514: Fix dockerfile warnings
dylanrogowsky-oxd Feb 19, 2025
a73746f
Merge pull request #2139 from bcgov/feature/ALCS-2514-fix-dockerfile-…
dylanrogowsky-oxd Feb 19, 2025
87805c8
Add decision condition financial instrument common component and service
Abradat Feb 20, 2025
4371c32
Add financial instrument component to applications
Abradat Feb 20, 2025
391e843
Merge pull request #2134 from bcgov/feature/ALCS-2260
trslater Feb 20, 2025
148b217
ALCS-2029 Created order dialog
fbarreta Feb 20, 2025
c03d215
Add application condition financial instrument table and functionalities
Abradat Feb 20, 2025
07fb058
Add instrument number validation
Abradat Feb 20, 2025
a71f3f7
Change soft delete to hard delete
Abradat Feb 20, 2025
7fe16f5
ALCS-2560 Change the search to APP/NOI File number
fbarreta Feb 20, 2025
c818f3e
ALCS-2560 Change MODI and RECON calls
fbarreta Feb 20, 2025
281949f
Fix tests
Abradat Feb 20, 2025
bd56011
Merge pull request #2142 from bcgov/hotfix/ALCS-2560-back-port
fbarreta Feb 20, 2025
d68775a
Allow paragraphs on staff comments field for applications and NOIs
Abradat Feb 20, 2025
df82aa3
Merge pull request #2141 from bcgov/feature/ALCS-542-2535
Abradat Feb 20, 2025
97af49f
Merge branch 'develop' into feature/ALCS-2029-sort-applications-condi…
fbarreta Feb 20, 2025
6a0409b
Merge pull request #2143 from bcgov/feature/ALCS-2412
Abradat Feb 20, 2025
f37148d
ALCS-2029 Drag and drop table
fbarreta Feb 21, 2025
a7d338b
Remove "Use End Date" field from Application and NOI prep
Abradat Feb 21, 2025
9d54181
Disable save on enter key when paragraph is allowed
Abradat Feb 21, 2025
ccb91d3
Allow paragraph in proposal summary field
Abradat Feb 21, 2025
8477dbe
Merge pull request #2144 from bcgov/feature/ALCS-2390
Abradat Feb 21, 2025
a7b1451
Merge pull request #2145 from bcgov/feature/ALCS-2412-2
Abradat Feb 21, 2025
1e9360b
Fix instrument table UI bugs
Abradat Feb 21, 2025
370c2fc
Merge pull request #2146 from bcgov/feature/ALCS-542-2
Abradat Feb 21, 2025
0af92bc
Left-align label with rest of text
trslater Feb 24, 2025
84c6892
Fix position and spacing
trslater Feb 24, 2025
8f2356c
Move router link bases to constants file
trslater Feb 24, 2025
4f31059
Merge pull request #2147 from bcgov/feature/ALCS-2260-QA-1
trslater Feb 24, 2025
a438b55
Use relative imports
trslater Feb 24, 2025
0430e22
Merge branch 'develop' into hotfix/ALCS-2550
trslater Feb 24, 2025
3086204
Merge pull request #2148 from bcgov/hotfix/ALCS-2550
trslater Feb 24, 2025
0645977
Fix "COMPLETED" typo preventing correct filtering
trslater Feb 25, 2025
6c35251
Update status in list when changed in single
trslater Feb 25, 2025
914200a
Merge pull request #2151 from bcgov/feature/ALCS-2260-QA-2
trslater Feb 25, 2025
a16f77b
ALCS-2500: Backport workflow
dylanrogowsky-oxd Feb 24, 2025
c21017f
Add NOI decision condition financial instrument backend components
Abradat Feb 26, 2025
d82ccf0
ALCS-2029 Order conditions feature
fbarreta Feb 26, 2025
08551fd
Merge branch 'develop' into feature/ALCS-2029-sort-applications-condi…
fbarreta Feb 26, 2025
407cb98
ALCS-2029 Test fixes
fbarreta Feb 26, 2025
f1c2647
ALCS-2029 Test fixes
fbarreta Feb 26, 2025
50a6ea1
ALCS-2029 Test fixes 2
fbarreta Feb 26, 2025
75004b0
ALCS-2414: Enhance email logging
dylanrogowsky-oxd Feb 26, 2025
da2bdc3
ALCS-2553 UI fixes
fbarreta Feb 26, 2025
3f8eb26
ALCS-2470 Bold ALR Area Impacted
fbarreta Feb 26, 2025
8cb506a
Merge pull request #2156 from bcgov/bugfix/ALCS-2553-decision-summary…
fbarreta Feb 26, 2025
345564e
Merge pull request #2157 from bcgov/bugfix/ALCS-2470-bold-alr-area
fbarreta Feb 26, 2025
1a591e2
Merge pull request #2153 from bcgov/backport/pr-2149
dylanrogowsky-oxd Feb 26, 2025
b757cab
Merge pull request #2155 from bcgov/feature/ALCS-2414-enhance-email-logs
dylanrogowsky-oxd Feb 26, 2025
214d429
Merge pull request #2154 from bcgov/feature/ALCS-2029-sort-applicatio…
fbarreta Feb 26, 2025
22b81a6
Add NOI decision condition financial instrument frontend components
Abradat Feb 26, 2025
39258f2
Fix status column rendering received date instead of status date
Abradat Feb 26, 2025
1c557d6
Merge branch 'develop' into feature/ALCS-2078
Abradat Feb 26, 2025
94a755a
Make upload dialog more robust and secure
trslater Feb 26, 2025
f126192
Merge pull request #2158 from bcgov/feature/ALCS-2078
Abradat Feb 26, 2025
ca5d7c0
ALCS-2200 Added UI fields
fbarreta Feb 27, 2025
6ceb201
ALCS-2029 QA1
fbarreta Feb 27, 2025
cd84d80
Don't overwrite options object
trslater Feb 27, 2025
dbe9a0d
ALCS-2029 Add structured clone to test
fbarreta Feb 27, 2025
6901111
ALCS-2029 Remove structredclone function
fbarreta Feb 27, 2025
664a364
Merge pull request #2162 from bcgov/feature/ALCS-2029-sort-conditions-qa
fbarreta Feb 27, 2025
20d81f6
Redirect to decision tab for modification and reconsideration cards
Abradat Feb 27, 2025
4db2150
Merge pull request #2165 from bcgov/bugfix/ALCS-2548
Abradat Feb 27, 2025
8c04af6
ALCS-2200 Frontend implementation
fbarreta Feb 27, 2025
94d040d
ALCS-2200 Update Search DTO
fbarreta Feb 27, 2025
cdf8aa3
Remove hover and interaction behaviour from tags in commissioner view
Abradat Feb 27, 2025
85fff58
ALCS-2476: Reimplement concurrency groups
dylanrogowsky-oxd Feb 27, 2025
0562e05
Add comma separator to security amount on view conditions
Abradat Feb 28, 2025
27927ea
Merge pull request #2171 from bcgov/backport/pr-2166
dylanrogowsky-oxd Feb 28, 2025
4606f97
ALCS-2578: Add Trivy image scan
dylanrogowsky-oxd Feb 27, 2025
2e7d492
ALCS-2533: Reconfigure OWASP ZAP scans
dylanrogowsky-oxd Feb 27, 2025
c94791d
ALCS-2029 Change move up algorithm
fbarreta Feb 28, 2025
f97f7d7
Merge pull request #2173 from bcgov/feature/ALCS-2533-reconfigure-owa…
dylanrogowsky-oxd Feb 28, 2025
71100b2
Merge pull request #2174 from bcgov/feature/ALCS-2578-add-trivy-image…
dylanrogowsky-oxd Feb 28, 2025
b0352d2
Merge pull request #2172 from bcgov/feature/ALCS-2574
Abradat Feb 28, 2025
ebfabb5
Merge pull request #2170 from bcgov/bugfix/ALCS-2549
Abradat Feb 28, 2025
93836be
Merge pull request #2175 from bcgov/feature/ALCS-2029-sort-conditions…
fbarreta Feb 28, 2025
ff574e8
ALCS-2533: Reconfigure OWASP ZAP scans artifact name
dylanrogowsky-oxd Feb 28, 2025
141f898
Merge pull request #2180 from bcgov/backport/pr-2179
dylanrogowsky-oxd Feb 28, 2025
d0d7391
ALCS-2029 Improve sort logic
fbarreta Feb 28, 2025
423b66b
ALCS-2029 Logic fix
fbarreta Feb 28, 2025
40ae11f
ALCS-2029 Remove log
fbarreta Feb 28, 2025
85af483
Merge pull request #2184 from bcgov/feature/ALCS-2029-sort-improvement
fbarreta Feb 28, 2025
bf2293d
ALCS-2200 Backend implementation
fbarreta Feb 28, 2025
f5f5a6d
ALCS-2200 Fix tests
fbarreta Feb 28, 2025
e6476c0
ALCS-2200 fix tests
fbarreta Feb 28, 2025
c7ce9f5
Merge pull request #2185 from bcgov/feature/ALCS-2200-advanced-search…
fbarreta Feb 28, 2025
3f906a9
Emit conditions validations when calling onValidate function
Abradat Mar 3, 2025
4dc6b9d
Emit conditions validations when calling onValidate function
Abradat Mar 3, 2025
4cd326e
Merge pull request #2186 from bcgov/bugfix/ALCS-2557
Abradat Mar 3, 2025
7ecc79d
Add confirmation dialog for deleting dates in multiple date conditions
Abradat Mar 3, 2025
237e25b
ALCS-2576 Implement alpha index on condition card
fbarreta Mar 4, 2025
0323e32
Merge pull request #2187 from bcgov/feature/ALCS-2558
Abradat Mar 4, 2025
1768376
Merge pull request #2189 from bcgov/feature/ALCS-2576-alpha-index-on-…
fbarreta Mar 4, 2025
941e774
Merge pull request #2160 from bcgov/backport/pr-2159
trslater Mar 4, 2025
58947f0
Merge branch 'develop' into backport/pr-2161
trslater Mar 4, 2025
084a6d3
ALCS-2576 Avoid order gaps when removing conditions
fbarreta Mar 4, 2025
73e8a5f
Merge pull request #2190 from bcgov/bugfix/ALCS-2576-avoid-gaps-when-…
fbarreta Mar 4, 2025
e395656
ALCS-2576 UI tweaks
fbarreta Mar 4, 2025
9c4740d
Remove interaction from tag chips in commissioner view
Abradat Mar 4, 2025
011a425
Merge pull request #2191 from bcgov/feature/ALCS-2576-ui-tweaks
fbarreta Mar 4, 2025
0a94b50
Remove keyboard interaction from tag chips
Abradat Mar 4, 2025
64920f1
Add keypress handle
Abradat Mar 4, 2025
97bbfca
Merge pull request #2192 from bcgov/bugfix/ALCS-2549-2
Abradat Mar 4, 2025
f4de4b2
ALCS-2227: Configure dependabot
dylanrogowsky-oxd Feb 27, 2025
344beae
Merge pull request #2193 from bcgov/backport/pr-2188
dylanrogowsky-oxd Mar 4, 2025
e705884
Merge pull request #2163 from bcgov/backport/pr-2161
trslater Mar 5, 2025
b431ac4
Make user email optional
trslater Mar 6, 2025
564c626
Migrate email column change
trslater Mar 6, 2025
1d43b76
Improve subtask filtering logic
trslater Mar 6, 2025
bf818d8
Add email to mock user, so email function called
trslater Mar 6, 2025
dea7191
Merge pull request #2197 from bcgov/feature/ALCS-2522
trslater Mar 6, 2025
329f948
Send user request email even if no email provided
trslater Mar 6, 2025
55b33cc
Fix failing test
trslater Mar 6, 2025
f47b58f
Rename financial instrument enums
Abradat Mar 6, 2025
94729bc
Add default to financial instrument's status column
Abradat Mar 6, 2025
7084bd7
Merge pull request #2198 from bcgov/feature/ALCS-2522-fix
trslater Mar 6, 2025
0fb1704
Merge pull request #2199 from bcgov/feature/ALCS-2588
Abradat Mar 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/alcs-frontend"
schedule:
interval: "daily"
target-branch: "develop"
commit-message:
prefix: "ALCS-000"
allow:
- dependency-type: "direct"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
groups:
npm-security:
applies-to: security-updates
patterns:
- "*"
update-types:
- "minor"
- "patch"
npm-minor-and-patch:
applies-to: version-updates
patterns:
- "*"
update-types:
- "minor"
- "patch"
- package-ecosystem: "npm"
directory: "/portal-frontend"
schedule:
interval: "daily"
target-branch: "develop"
commit-message:
prefix: "ALCS-000"
allow:
- dependency-type: "direct"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
groups:
npm-security:
applies-to: security-updates
patterns:
- "*"
update-types:
- "minor"
- "patch"
npm-minor-and-patch:
applies-to: version-updates
patterns:
- "*"
update-types:
- "minor"
- "patch"
- package-ecosystem: "npm"
directory: "/services"
schedule:
interval: "daily"
target-branch: "develop"
commit-message:
prefix: "ALCS-000"
allow:
- dependency-type: "direct"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
groups:
npm-security:
applies-to: security-updates
patterns:
- "*"
update-types:
- "minor"
- "patch"
npm-minor-and-patch:
applies-to: version-updates
patterns:
- "*"
update-types:
- "minor"
- "patch"
6 changes: 6 additions & 0 deletions .github/workflows/_build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
run: |
DOCKER_IMAGE=ghcr.io/${{ steps.lowercase_repo_owner.outputs.lowercase }}/${{ inputs.image-name }}
TAGS="${DOCKER_IMAGE}:${{ github.sha }},${DOCKER_IMAGE}:latest"

# Add dev-latest tag for develop branch
if [ "${{ github.ref }}" = "refs/heads/develop" ]; then
TAGS="${TAGS},${DOCKER_IMAGE}:latest-dev"
fi

echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Auto-merge Dependabot PRs

on:
pull_request:
branches:
- develop
workflow_run:
workflows: ["CI"]
types:
- completed

permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
runs-on: ubuntu-latest
if: |
github.actor == 'dependabot[bot]' &&
github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: Auto-merge Dependabot PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
run: |
# Get PR number from branch name
PR_NUMBER=$(echo "$HEAD_BRANCH" | grep -o '[0-9]\+' || echo '')

if [ -n "$PR_NUMBER" ]; then
# Approve PR
gh pr review $PR_NUMBER --approve

# Enable auto-merge
gh pr merge $PR_NUMBER --auto --merge
fi
110 changes: 110 additions & 0 deletions .github/workflows/backport-to-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Backport to Develop
on:
pull_request:
types:
- closed
branches:
- main

jobs:
backport:
# Only run if PR was merged (not just closed) and it wasn't from develop
if: |
github.event.pull_request.merged == true &&
github.event.pull_request.head.ref != 'develop'
name: Backport to Develop
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
BACKPORT_BRANCH: backport/pr-${{ github.event.pull_request.number }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: develop
token: ${{ secrets.GITHUB_TOKEN }}

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Get First Approver
id: get-approver
run: |
# Get reviews for the original PR
REVIEWS=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews")

# Extract first APPROVED reviewer's login
FIRST_APPROVER=$(echo "$REVIEWS" | jq -r '.[] | select(.state=="APPROVED") | .user.login' | head -n 1)

if [ ! -z "$FIRST_APPROVER" ]; then
echo "has_reviewer=true" >> $GITHUB_OUTPUT
echo "reviewer=$FIRST_APPROVER" >> $GITHUB_OUTPUT
else
echo "has_reviewer=false" >> $GITHUB_OUTPUT
fi

- name: Create backport branch
run: |
# Create a new branch from develop
git checkout -b ${{ env.BACKPORT_BRANCH }}

# Get the range of commits to cherry-pick
BASE_SHA=$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})

# Cherry pick the range of commits
# Using -m 1 to handle merge commits, and --strategy=recursive --strategy-option=theirs to handle conflicts
if ! git cherry-pick -m 1 --strategy=recursive --strategy-option=theirs ${BASE_SHA}..${{ github.event.pull_request.merge_commit_sha }}; then
if [ -f .git/CHERRY_PICK_HEAD ]; then
# We're in a cherry-pick state
if git diff --cached --quiet && git diff --quiet; then
# No changes in working directory or index - safe to skip
git cherry-pick --skip
else
# There are uncommitted changes - could be conflicts
git cherry-pick --abort
exit 1
fi
else
# Some other error occurred
exit 1
fi
fi

# Push the branch using the token for authentication
git push "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" ${{ env.BACKPORT_BRANCH }}

- name: Create Pull Request with Reviewer
if: steps.get-approver.outputs.has_reviewer == 'true'
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ env.BACKPORT_BRANCH }}
destination_branch: "develop"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Backport: ${{ github.event.pull_request.title }}"
pr_body: |
Automated backport of changes from main to develop

Original PR: [#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
Original Author: @${{ github.event.pull_request.user.login }}
pr_label: "backport"
pr_reviewer: ${{ steps.get-approver.outputs.reviewer }}

- name: Create Pull Request without Reviewer
if: steps.get-approver.outputs.has_reviewer != 'true'
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ env.BACKPORT_BRANCH }}
destination_branch: "develop"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Backport: ${{ github.event.pull_request.title }}"
pr_body: |
Automated backport of changes from main to develop

Original PR: [#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
Original Author: @${{ github.event.pull_request.user.login }}
pr_label: "backport"
8 changes: 7 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ jobs:
with:
environment: test
secrets: inherit
concurrency:
group: deploy-test
cancel-in-progress: true
deploy-prod:
needs: deploy-test
uses: ./.github/workflows/deploy.yml
with:
environment: prod
secrets: inherit
secrets: inherit
concurrency:
group: deploy-prod
cancel-in-progress: true
78 changes: 78 additions & 0 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Weekly Trivy DEV Image Scans

on:
schedule:
# Runs every week at 02:00 Sunday Morning.
- cron: '0 2 * * 0'
workflow_dispatch:

permissions:
packages: read
security-events: write

jobs:
image-scan-api:
name: Scan latest-dev API Image
runs-on: ubuntu-latest
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
with:
image-ref: 'ghcr.io/bcgov/alcs-api:latest-dev'
format: 'sarif'
output: 'trivy-results.sarif'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
limit-severities-for-sarif: true

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

image-scan-portal:
name: Scan latest-dev Portal Image
runs-on: ubuntu-latest
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
with:
image-ref: 'ghcr.io/bcgov/alcs-portal-frontend:latest-dev'
format: 'sarif'
output: 'trivy-results.sarif'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
limit-severities-for-sarif: true

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

image-scan-frontend:
name: Scan latest-dev Frontend Image
runs-on: ubuntu-latest
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
with:
image-ref: 'ghcr.io/bcgov/alcs-frontend:latest-dev'
format: 'sarif'
output: 'trivy-results.sarif'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
limit-severities-for-sarif: true

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
Loading