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

LASB-2748: Resolve critical vulnerabilities reported by Snyk #256

Merged
merged 27 commits into from
Dec 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
eced812
Updated the dependabot settings to with with version 2.
mtac50 Dec 6, 2023
64a8d34
LASB-2748: Updated spring boot and gradle versions
mtac50 Dec 6, 2023
8c83341
LASB-2748: Migrated test to use JUnit 5.
mtac50 Dec 6, 2023
0892516
LASB-2748: Fixed test constructor.
mtac50 Dec 7, 2023
2ca6284
LASB-2748: Updated the docker tag to use the commit hash rather than …
mtac50 Dec 7, 2023
067a84d
LASB-2748: Remove references to the BUILD_TAG file.
mtac50 Dec 7, 2023
36ef0e2
LASB-2748: Updated spring boot, logback, snakeyaml and apache.cxf dep…
mtac50 Dec 7, 2023
2ffbb57
LASB-2748: Upgraded spring dependency management and pinned snakeyaml…
mtac50 Dec 7, 2023
9903a87
LASB-2748: Reverted aws sdk update.
mtac50 Dec 7, 2023
fbc21aa
LASB-2748: Created reusable workflows for build and deploying the app…
mtac50 Dec 8, 2023
50cfebd
LASB02748: Replaced the cp-build workflow with one that calls the reu…
mtac50 Dec 8, 2023
1672aaa
LASB-2748: Fixed yaml syntax issue.
mtac50 Dec 8, 2023
6b2b13e
LASB-2748: Added missing job name.
mtac50 Dec 8, 2023
a1018a4
LASB-2748: Updated reference to GITHUB_SHA variable.
mtac50 Dec 8, 2023
1eca258
LASB-2748: Update reference to github.sha variable.
mtac50 Dec 8, 2023
a3c09a1
LASB-2748: Refactored build and deploy dev into steps.
mtac50 Dec 8, 2023
bee4303
LASB-2748: Removed secret inheritance.
mtac50 Dec 8, 2023
0f58c05
LASB-2748: Remove secret inheritance from deploy workflow.
mtac50 Dec 8, 2023
3d1ff68
LASB-2748: Moved checkout action to the calling workflow.
mtac50 Dec 8, 2023
e7ea8c0
LASB-2748: Removed typo in uses section.
mtac50 Dec 8, 2023
4664578
LASB-2748: Changes reusable workflow calls from steps to jobs.
mtac50 Dec 8, 2023
9655b3f
LASB-2748: move runs on and environment settings into the reusable wo…
mtac50 Dec 8, 2023
b0bf59b
LASB-2748:Updated secret usage in reusable workflows.
mtac50 Dec 8, 2023
93b3632
LASB-2748: Fixed typo in inputs reference.
mtac50 Dec 8, 2023
8f30f78
LASB-2748: Updated secrets references.
mtac50 Dec 8, 2023
fe4a0a1
LASB-2748: Updated the cp-deploy action to build and deploy to all en…
mtac50 Dec 8, 2023
6d410e3
LASB-2748: Removed additional jobs section.
mtac50 Dec 8, 2023
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
Prev Previous commit
Next Next commit
LASB-2748: Fixed yaml syntax issue.
mtac50 committed Dec 8, 2023
commit 1672aaa08e245dd95cf71de265cc84a23c2aee0b
4 changes: 3 additions & 1 deletion .github/workflows/cp-build-and-deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -21,9 +21,11 @@ jobs:
secrets: inherit

deploy-application-dev:
environment: development
needs: call-build-and-push-image-workflow
uses: ./.github/workflows/deploy-to-cloud-platform.yml
with:
environment: development
env-name: development
helm-values-file: values_dev.yaml
ecr-repository: ${{ vars.ECR_REPOSITORY }}
docker-tag: ${{ env.$GITHUB_SHA }}
6 changes: 2 additions & 4 deletions .github/workflows/deploy-to-cloud-platform.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ on:
docker-tag:
required: true
type: string
environment:
env-name:
required: true
type: string
helm-values-file:
@@ -27,8 +27,6 @@ on:
required: true

jobs:
environment: ${{ inputs.environment }}
needs: build-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -41,7 +39,7 @@ jobs:
kubectl config set-credentials deploy-user --token=${{ secrets.KUBE_TOKEN }}
kubectl config set-context ${KUBE_CLUSTER} --cluster=${KUBE_CLUSTER} --user=deploy-user --namespace=${{ secrets.KUBE_NAMESPACE }}
kubectl config use-context ${KUBE_CLUSTER}
- name: Helm deploy to ${{ inputs.environment }} environment
- name: Helm deploy to ${{ inputs.env-name }} environment
run: |
cd helm_deploy/not-on-libra-auto-search-application
helm upgrade not-on-libra-auto-search-application -f ${{ inputs.helm-values-file }} . --namespace ${{ secrets.KUBE_NAMESPACE }} --install --set nolasa.image.tag=${{ inputs.docker-tag }} --set nolasa.image.repository=${{ inputs.ecr-base-uri }}/${{ vars.ECR_REPOSITORY }}