Skip to content

Commit

Permalink
chore(dev-flow): maintain latest changes in main branch (eclipse-trac…
Browse files Browse the repository at this point in the history
…tusx#177)

get rid of the dev branch
eclipse-tractusx/portal#243
  • Loading branch information
evegufy authored and dhiren-singh-007 committed Jul 16, 2024
1 parent 476ce3f commit 5899ac4
Show file tree
Hide file tree
Showing 19 changed files with 138 additions and 205 deletions.
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ updates:
# NuGet
-
package-ecosystem: "nuget"
target-branch: dev
directory: /
labels:
- "dependabot"
Expand All @@ -42,7 +41,6 @@ updates:
# Github Actions
-
package-ecosystem: "github-actions"
target-branch: dev
directory: /
labels:
- "dependabot"
Expand All @@ -56,7 +54,6 @@ updates:
# Docker
-
package-ecosystem: "docker"
target-branch: dev
directory: ./docker/
labels:
- "dependabot"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chart-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
push:
paths:
- 'charts/ssi-credential-issuer/**'
branches: [main, dev, release-candidate]
branches: [main]
pull_request:
paths:
- 'charts/ssi-credential-issuer/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/credential-expiry-app-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
- 'docker/Dockerfile-credential-expiry-app'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: Check Dependencies

on:
push:
branches: [main, dev]
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: "KICS"

on:
push:
branches: [main, dev]
branches: [main]
# pull_request:
# The branches below must be a subset of the branches above
# branches: [main, dev]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/migrations-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

name: Build Migrations Image

on:
on:
push:
paths:
# service and transitive paths
Expand All @@ -31,7 +31,7 @@ on:
- 'docker/Dockerfile-credential-issuer-migrations'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/processes-worker-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
- 'docker/Dockerfile-credential-issuer-processes-worker'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ on:
paths:
- 'charts/**'
branches:
- main
- 'main'
- 'release/v*.*.*'


jobs:
release-helm-chart:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/service-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
- 'docker/Dockerfile-credential-issuer-service'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
name: Sonarcloud
on:
push:
branches: [main, dev]
branches: [main]
paths:
- 'src/**'
pull_request:
Expand Down Expand Up @@ -48,14 +48,14 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v4
uses: actions/cache@c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v4
uses: actions/cache@c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ./.sonar/scanner
key: ${{ runner.os }}-sonar-scanner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
# Depending on the location of your Docker container
# you need to change the path to the specific Docker registry.
#
name: "Trivy Dev"
name: "Trivy Main"

on:
push:
branches: [ dev ]
branches: [main]
# pull_request:
# The branches below must be a subset of the branches above
# branches: [ main, master ]
Expand Down Expand Up @@ -89,16 +89,16 @@ jobs:
uses: aquasecurity/trivy-action@b2933f565dbc598b29947660e66259e3c7bc8561 # v0.20.0
with:
# Path to Docker image
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-service:dev"
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-service:main"
format: "sarif"
output: "trivy-results3.sarif"
output: "trivy-results2.sarif"
vuln-type: "os,library"

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: "trivy-results3.sarif"
sarif_file: "trivy-results2.sarif"

analyze-ssi-credential-issuer-migrations:
runs-on: ubuntu-latest
Expand All @@ -121,17 +121,17 @@ jobs:
uses: aquasecurity/trivy-action@b2933f565dbc598b29947660e66259e3c7bc8561 # v0.20.0
with:
# Path to Docker image
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-migrations:dev"
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-migrations:main"
format: "sarif"
output: "trivy-results9.sarif"
output: "trivy-results3.sarif"
vuln-type: "os,library"
skip-dirs: "docs/"

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: "trivy-results9.sarif"
sarif_file: "trivy-results3.sarif"

analyze-ssi-credential-expiry-app:
runs-on: ubuntu-latest
Expand All @@ -154,17 +154,17 @@ jobs:
uses: aquasecurity/trivy-action@b2933f565dbc598b29947660e66259e3c7bc8561 # v0.20.0
with:
# Path to Docker image
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-expiry-app:dev"
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-expiry-app:main"
format: "sarif"
output: "trivy-results9.sarif"
output: "trivy-results4.sarif"
vuln-type: "os,library"
skip-dirs: "docs/"

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: "trivy-results9.sarif"
sarif_file: "trivy-results4.sarif"

analyze-ssi-credential-issuer-processes-worker:
runs-on: ubuntu-latest
Expand All @@ -187,15 +187,14 @@ jobs:
uses: aquasecurity/trivy-action@b2933f565dbc598b29947660e66259e3c7bc8561 # v0.20.0
with:
# Path to Docker image
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-processes-worker:dev"
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-processes-worker:main"
format: "sarif"
output: "trivy-results9.sarif"
output: "trivy-results5.sarif"
vuln-type: "os,library"
skip-dirs: "docs/"

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: "trivy-results9.sarif"

sarif_file: "trivy-results5.sarif"
21 changes: 10 additions & 11 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ name: "Trivy Stable"

on:
push:
branches: [ main ]
branches: [main]
# pull_request:
# The branches below must be a subset of the branches above
# branches: [ main, master ]
Expand Down Expand Up @@ -92,14 +92,14 @@ jobs:
# Path to Docker image
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-service:latest"
format: "sarif"
output: "trivy-results3.sarif"
output: "trivy-results2.sarif"
vuln-type: "os,library"

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: "trivy-results3.sarif"
sarif_file: "trivy-results2.sarif"

analyze-ssi-credential-issuer-migrations:
runs-on: ubuntu-latest
Expand All @@ -124,14 +124,14 @@ jobs:
# Path to Docker image
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-migrations:latest"
format: "sarif"
output: "trivy-results9.sarif"
output: "trivy-results3.sarif"
vuln-type: "os,library"

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: "trivy-results9.sarif"
sarif_file: "trivy-results3.sarif"

analyze-ssi-credential-expiry-app:
runs-on: ubuntu-latest
Expand All @@ -156,15 +156,15 @@ jobs:
# Path to Docker image
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-expiry-app:latest"
format: "sarif"
output: "trivy-results9.sarif"
output: "trivy-results4.sarif"
vuln-type: "os,library"

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: "trivy-results9.sarif"
sarif_file: "trivy-results4.sarif"

analyze-ssi-credential-issuer-processes-worker:
runs-on: ubuntu-latest
permissions:
Expand All @@ -188,12 +188,11 @@ jobs:
# Path to Docker image
image-ref: "${{ env.IMAGE_NAMESPACE }}/ssi-credential-issuer-processes-worker:latest"
format: "sarif"
output: "trivy-results9.sarif"
output: "trivy-results5.sarif"
vuln-type: "os,library"

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
sarif_file: "trivy-results9.sarif"

sarif_file: "trivy-results5.sarif"
4 changes: 2 additions & 2 deletions .github/workflows/unit.tests-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: Unit-Tests and Formatting

on:
push:
branches: [main, dev]
branches: [main]
paths:
- 'src/**'
pull_request:
Expand All @@ -39,7 +39,7 @@ jobs:
dotnet-version: ['8.0']

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ flowchart LR
end
subgraph eclipse-tractusx
direction LR
D -- PR* to dev*--> SCI(ssi-credential-issuer**)
D -- PR* to main*--> SCI(ssi-credential-issuer**)
click SCI "https://github.com/eclipse-tractusx/ssi-credential-issuer"
end
subgraph Argo CD - sync to k8s cluster
Expand Down
Loading

0 comments on commit 5899ac4

Please sign in to comment.