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

CORE-2300 Add Composite Action Vulnerability Slack Alert #201

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

vdalseng
Copy link

Added new composite action that lets users fetch code scanning vulnerabilities from their repositories and get notified on Slack in a channel of their choosing.

@vdalseng vdalseng added the enhancement New feature or request label Feb 19, 2025
@vdalseng vdalseng requested a review from baksetercx February 19, 2025 14:39
@vdalseng vdalseng self-assigned this Feb 19, 2025
Comment on lines 12 to 14
If no input is provided, the action will attempt to read the token from Elvia's Vault instance.
Reading the token from Vault is only possible if the repository you are running this action from has been added to [github-repositories-terraform](https://github.com/3lvia/github-repositories-terraform),
and you are running inside the GitHub Actions environments `dev`, `test` or `prod`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det vil ikke funke å hente fra Vault hvis du ikke spesifiserer namespace og environment til 3lvia/core-github-actions-templates/slack-message: https://github.com/3lvia/core-github-actions-templates/blob/trunk/slack-message/action.yml#L20-L25.

Så du kan enten ta inn alle tre (slack-api-token og namespace, environment) eller bare ta inn slack-api-token som required: true.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vi kan endre slack-api-token til required: true siden den er viktigst akkurat nå. environment og namespace blir ikke brukt i denne workflowen så de kan ekskluderes for øyeblikket.

Used prettier to correct an error in the action.yml file.
@3lvia-core-admin
Copy link
Contributor

3lvia-core-admin bot commented Feb 19, 2025

📝 Starter Workflow Templates Update

The starter workflow templates have been updated. Please review the changes below.

Files changed:

workflow-templates/build-deploy-dockerfile-google.yml
workflow-templates/build-deploy-dockerfile.yml
workflow-templates/build-deploy-dotnet-google.yml
workflow-templates/build-deploy-dotnet.yml
workflow-templates/build-deploy-go-google.yml
workflow-templates/build-deploy-go.yml
workflow-templates/build-deploy-python-google.yml
workflow-templates/build-deploy-python.yml

Full diff:


diff --git a/workflow-templates/build-deploy-dockerfile-google.yml b/workflow-templates/build-deploy-dockerfile-google.yml
index 44424ef..e2db8b2 100644
--- a/workflow-templates/build-deploy-dockerfile-google.yml
+++ b/workflow-templates/build-deploy-dockerfile-google.yml
@@ -35,7 +35,7 @@ jobs:
       cancel-in-progress: true
     environment: build
     steps:
-      - uses: 3lvia/core-github-actions-templates/build@trunk
+            - uses: 3lvia/core-github-actions-templates/build@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -43,7 +43,7 @@ jobs:
           trivy-upload-report: 'true'
           trivy-post-comment: 'true'
           AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
-
+          
   deploy-dev:
     name: Deploy Dev
     # Require all jobs below to be successful before running this job.
@@ -59,7 +59,7 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-deploy-dev'
     environment: dev
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -71,7 +71,7 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
-
+          
   deploy-test:
     name: Deploy Test
     # Only deploy to test after dev
@@ -87,7 +87,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -99,7 +99,7 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
-
+          
   deploy-prod:
     name: Deploy Prod
     # Only deploy to prod after test
@@ -115,7 +115,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -127,3 +127,4 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
+          
\ No newline at end of file
diff --git a/workflow-templates/build-deploy-dockerfile.yml b/workflow-templates/build-deploy-dockerfile.yml
index b6b7af5..0ec0657 100644
--- a/workflow-templates/build-deploy-dockerfile.yml
+++ b/workflow-templates/build-deploy-dockerfile.yml
@@ -35,7 +35,7 @@ jobs:
       cancel-in-progress: true
     environment: build
     steps:
-      - uses: 3lvia/core-github-actions-templates/build@trunk
+            - uses: 3lvia/core-github-actions-templates/build@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -43,7 +43,7 @@ jobs:
           trivy-upload-report: 'true'
           trivy-post-comment: 'true'
           AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
-
+          
   deploy-dev:
     name: Deploy Dev
     # Require all jobs below to be successful before running this job.
@@ -59,7 +59,7 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-deploy-dev'
     environment: dev
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -69,7 +69,7 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
-
+          
   deploy-test:
     name: Deploy Test
     # Only deploy to test after dev
@@ -85,7 +85,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -95,7 +95,7 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
-
+          
   deploy-prod:
     name: Deploy Prod
     # Only deploy to prod after test
@@ -111,7 +111,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -121,3 +121,4 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
+          
\ No newline at end of file
diff --git a/workflow-templates/build-deploy-dotnet-google.yml b/workflow-templates/build-deploy-dotnet-google.yml
index c24e88a..a5bc0c1 100644
--- a/workflow-templates/build-deploy-dotnet-google.yml
+++ b/workflow-templates/build-deploy-dotnet-google.yml
@@ -32,12 +32,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-analyze'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/analyze@trunk
+            - uses: 3lvia/core-github-actions-templates/analyze@trunk
         with:
           # This can be set to a more specific path if you want to analyze only a part of the repository.
           working-directory: '.'
           language: 'csharp'
-
+          
   unit-tests:
     name: Unit Tests
     runs-on: elvia-runner
@@ -51,12 +51,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-unit-tests'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/unittest@trunk
+            - uses: 3lvia/core-github-actions-templates/unittest@trunk
         with:
           # This can be set to a more specific path if you want to search for tests in only a part of the repository.
           working-directory: '.'
           test-coverage: 'true'
-
+          
   integration-tests:
     name: Integration Tests
     runs-on: elvia-runner
@@ -71,12 +71,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-integration-tests'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/integrationtest@trunk
+            - uses: 3lvia/core-github-actions-templates/integrationtest@trunk
         with:
           # This can be set to a more specific path if you want to search for tests in only a part of the repository.
           working-directory: '.'
           system: ${{ env.SYSTEM_NAME }}
-
+          
   build-scan:
     name: Build and Scan
     runs-on: elvia-runner
@@ -92,7 +92,7 @@ jobs:
       cancel-in-progress: true
     environment: build
     steps:
-      - uses: 3lvia/core-github-actions-templates/build@trunk
+            - uses: 3lvia/core-github-actions-templates/build@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -100,7 +100,7 @@ jobs:
           trivy-upload-report: 'true'
           trivy-post-comment: 'true'
           AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
-
+          
   deploy-dev:
     name: Deploy Dev
     # Require all jobs below to be successful before running this job.
@@ -119,7 +119,7 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-deploy-dev'
     environment: dev
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -131,7 +131,7 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
-
+          
   deploy-test:
     name: Deploy Test
     # Only deploy to test after dev
@@ -147,7 +147,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -159,7 +159,7 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
-
+          
   deploy-prod:
     name: Deploy Prod
     # Only deploy to prod after test
@@ -175,7 +175,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -187,3 +187,4 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
+          
\ No newline at end of file
diff --git a/workflow-templates/build-deploy-dotnet.yml b/workflow-templates/build-deploy-dotnet.yml
index a099124..dfcdfd4 100644
--- a/workflow-templates/build-deploy-dotnet.yml
+++ b/workflow-templates/build-deploy-dotnet.yml
@@ -32,12 +32,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-analyze'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/analyze@trunk
+            - uses: 3lvia/core-github-actions-templates/analyze@trunk
         with:
           # This can be set to a more specific path if you want to analyze only a part of the repository.
           working-directory: '.'
           language: 'csharp'
-
+          
   unit-tests:
     name: Unit Tests
     runs-on: elvia-runner
@@ -51,12 +51,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-unit-tests'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/unittest@trunk
+            - uses: 3lvia/core-github-actions-templates/unittest@trunk
         with:
           # This can be set to a more specific path if you want to search for tests in only a part of the repository.
           working-directory: '.'
           test-coverage: 'true'
-
+          
   integration-tests:
     name: Integration Tests
     runs-on: elvia-runner
@@ -71,12 +71,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-integration-tests'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/integrationtest@trunk
+            - uses: 3lvia/core-github-actions-templates/integrationtest@trunk
         with:
           # This can be set to a more specific path if you want to search for tests in only a part of the repository.
           working-directory: '.'
           system: ${{ env.SYSTEM_NAME }}
-
+          
   build-scan:
     name: Build and Scan
     runs-on: elvia-runner
@@ -92,7 +92,7 @@ jobs:
       cancel-in-progress: true
     environment: build
     steps:
-      - uses: 3lvia/core-github-actions-templates/build@trunk
+            - uses: 3lvia/core-github-actions-templates/build@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -100,7 +100,7 @@ jobs:
           trivy-upload-report: 'true'
           trivy-post-comment: 'true'
           AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
-
+          
   deploy-dev:
     name: Deploy Dev
     # Require all jobs below to be successful before running this job.
@@ -119,7 +119,7 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-deploy-dev'
     environment: dev
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -129,7 +129,7 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
-
+          
   deploy-test:
     name: Deploy Test
     # Only deploy to test after dev
@@ -145,7 +145,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -155,7 +155,7 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
-
+          
   deploy-prod:
     name: Deploy Prod
     # Only deploy to prod after test
@@ -171,7 +171,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -181,3 +181,4 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
+          
\ No newline at end of file
diff --git a/workflow-templates/build-deploy-go-google.yml b/workflow-templates/build-deploy-go-google.yml
index f5d269a..d05cc49 100644
--- a/workflow-templates/build-deploy-go-google.yml
+++ b/workflow-templates/build-deploy-go-google.yml
@@ -32,12 +32,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-analyze'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/analyze@trunk
+            - uses: 3lvia/core-github-actions-templates/analyze@trunk
         with:
           # This can be set to a more specific path if you want to analyze only a part of the repository.
           working-directory: '.'
           language: 'go'
-
+          
   build-scan:
     name: Build and Scan
     runs-on: elvia-runner
@@ -53,7 +53,7 @@ jobs:
       cancel-in-progress: true
     environment: build
     steps:
-      - uses: 3lvia/core-github-actions-templates/build@trunk
+            - uses: 3lvia/core-github-actions-templates/build@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -61,7 +61,7 @@ jobs:
           trivy-upload-report: 'true'
           trivy-post-comment: 'true'
           AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
-
+          
   deploy-dev:
     name: Deploy Dev
     # Require all jobs below to be successful before running this job.
@@ -78,7 +78,7 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-deploy-dev'
     environment: dev
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -90,7 +90,7 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
-
+          
   deploy-test:
     name: Deploy Test
     # Only deploy to test after dev
@@ -106,7 +106,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -118,7 +118,7 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
-
+          
   deploy-prod:
     name: Deploy Prod
     # Only deploy to prod after test
@@ -134,7 +134,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -146,3 +146,4 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
+          
\ No newline at end of file
diff --git a/workflow-templates/build-deploy-go.yml b/workflow-templates/build-deploy-go.yml
index f4d6c05..f4c0769 100644
--- a/workflow-templates/build-deploy-go.yml
+++ b/workflow-templates/build-deploy-go.yml
@@ -32,12 +32,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-analyze'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/analyze@trunk
+            - uses: 3lvia/core-github-actions-templates/analyze@trunk
         with:
           # This can be set to a more specific path if you want to analyze only a part of the repository.
           working-directory: '.'
           language: 'go'
-
+          
   build-scan:
     name: Build and Scan
     runs-on: elvia-runner
@@ -53,7 +53,7 @@ jobs:
       cancel-in-progress: true
     environment: build
     steps:
-      - uses: 3lvia/core-github-actions-templates/build@trunk
+            - uses: 3lvia/core-github-actions-templates/build@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -61,7 +61,7 @@ jobs:
           trivy-upload-report: 'true'
           trivy-post-comment: 'true'
           AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
-
+          
   deploy-dev:
     name: Deploy Dev
     # Require all jobs below to be successful before running this job.
@@ -78,7 +78,7 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-deploy-dev'
     environment: dev
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -88,7 +88,7 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
-
+          
   deploy-test:
     name: Deploy Test
     # Only deploy to test after dev
@@ -104,7 +104,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -114,7 +114,7 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
-
+          
   deploy-prod:
     name: Deploy Prod
     # Only deploy to prod after test
@@ -130,7 +130,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -140,3 +140,4 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
+          
\ No newline at end of file
diff --git a/workflow-templates/build-deploy-python-google.yml b/workflow-templates/build-deploy-python-google.yml
index 9d58bfd..e823054 100644
--- a/workflow-templates/build-deploy-python-google.yml
+++ b/workflow-templates/build-deploy-python-google.yml
@@ -32,12 +32,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-analyze'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/analyze@trunk
+            - uses: 3lvia/core-github-actions-templates/analyze@trunk
         with:
           # This can be set to a more specific path if you want to analyze only a part of the repository.
           working-directory: '.'
           language: 'python'
-
+          
   build-scan:
     name: Build and Scan
     runs-on: elvia-runner
@@ -53,7 +53,7 @@ jobs:
       cancel-in-progress: true
     environment: build
     steps:
-      - uses: 3lvia/core-github-actions-templates/build@trunk
+            - uses: 3lvia/core-github-actions-templates/build@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -61,7 +61,7 @@ jobs:
           trivy-upload-report: 'true'
           trivy-post-comment: 'true'
           AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
-
+          
   deploy-dev:
     name: Deploy Dev
     # Require all jobs below to be successful before running this job.
@@ -78,7 +78,7 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-deploy-dev'
     environment: dev
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -90,7 +90,7 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
-
+          
   deploy-test:
     name: Deploy Test
     # Only deploy to test after dev
@@ -106,7 +106,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -118,7 +118,7 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
-
+          
   deploy-prod:
     name: Deploy Prod
     # Only deploy to prod after test
@@ -134,7 +134,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -146,3 +146,4 @@ jobs:
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           GC_SERVICE_ACCOUNT: ${{ vars.GC_SERVICE_ACCOUNT }}
           GC_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GC_WORKLOAD_IDENTITY_PROVIDER }}
+          
\ No newline at end of file
diff --git a/workflow-templates/build-deploy-python.yml b/workflow-templates/build-deploy-python.yml
index 5ca6978..c921532 100644
--- a/workflow-templates/build-deploy-python.yml
+++ b/workflow-templates/build-deploy-python.yml
@@ -32,12 +32,12 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-analyze'
       cancel-in-progress: true
     steps:
-      - uses: 3lvia/core-github-actions-templates/analyze@trunk
+            - uses: 3lvia/core-github-actions-templates/analyze@trunk
         with:
           # This can be set to a more specific path if you want to analyze only a part of the repository.
           working-directory: '.'
           language: 'python'
-
+          
   build-scan:
     name: Build and Scan
     runs-on: elvia-runner
@@ -53,7 +53,7 @@ jobs:
       cancel-in-progress: true
     environment: build
     steps:
-      - uses: 3lvia/core-github-actions-templates/build@trunk
+            - uses: 3lvia/core-github-actions-templates/build@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -61,7 +61,7 @@ jobs:
           trivy-upload-report: 'true'
           trivy-post-comment: 'true'
           AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
-
+          
   deploy-dev:
     name: Deploy Dev
     # Require all jobs below to be successful before running this job.
@@ -78,7 +78,7 @@ jobs:
       group: '${{ github.workflow }}-${{ github.ref }}-deploy-dev'
     environment: dev
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -88,7 +88,7 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
-
+          
   deploy-test:
     name: Deploy Test
     # Only deploy to test after dev
@@ -104,7 +104,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -114,7 +114,7 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
-
+          
   deploy-prod:
     name: Deploy Prod
     # Only deploy to prod after test
@@ -130,7 +130,7 @@ jobs:
     # Only on push to trunk
     if: github.ref == 'refs/heads/trunk'
     steps:
-      - uses: 3lvia/core-github-actions-templates/deploy@trunk
+            - uses: 3lvia/core-github-actions-templates/deploy@trunk
         with:
           name: ${{ env.APPLICATION_NAME }}
           namespace: ${{ env.SYSTEM_NAME }}
@@ -140,3 +140,4 @@ jobs:
           # Can be commented out if you don't want this.
           slack-channel: '#team-${{ env.SYSTEM_NAME }}-alerts'
           AZURE_CLIENT_ID: ${{ vars.AKS_CLIENT_ID }}
+          
\ No newline at end of file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants