Skip to content

Commit ce46c7d

Browse files
committed
feat: implement enterprise CI/CD pipeline, automated security scanning, and release workflows
1 parent 2b05ca2 commit ce46c7d

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/main-ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
contents: read
1919
steps:
2020
- name: Checkout Code
21-
uses: actions/checkout@v7
21+
uses: actions/checkout@v4
2222

2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
@@ -42,7 +42,7 @@ jobs:
4242
contents: read
4343
steps:
4444
- name: Checkout Code
45-
uses: actions/checkout@v7
45+
uses: actions/checkout@v4
4646

4747
- name: Run Trivy vulnerability scanner
4848
uses: aquasecurity/trivy-action@master

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
contents: write # Needed to create a release
1414
steps:
1515
- name: Checkout Code
16-
uses: actions/checkout@v7
16+
uses: actions/checkout@v4
1717

1818
- name: Generate Release Notes and Create Release
19-
uses: softprops/action-gh-release@v3
19+
uses: softprops/action-gh-release@v2
2020
with:
2121
generate_release_notes: true
2222
draft: false

.github/workflows/reusable-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,30 @@ jobs:
3232

3333
steps:
3434
- name: Checkout repository
35-
uses: actions/checkout@v7
35+
uses: actions/checkout@v4
3636

3737
- name: Set up Docker Buildx
38-
uses: docker/setup-buildx-action@v4
38+
uses: docker/setup-buildx-action@v3
3939

4040
- name: Log in to GitHub Container Registry
4141
if: ${{ inputs.push }}
42-
uses: docker/login-action@v4.5.2
42+
uses: docker/login-action@v3
4343
with:
4444
registry: ${{ env.REGISTRY }}
4545
username: ${{ github.actor }}
4646
password: ${{ secrets.GITHUB_TOKEN }}
4747

4848
- name: Extract metadata (tags, labels)
4949
id: meta
50-
uses: docker/metadata-action@v6
50+
uses: docker/metadata-action@v5
5151
with:
5252
images: ${{ env.REGISTRY }}/${{ inputs.image-name }}
5353
tags: |
5454
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
5555
type=sha,prefix=,format=short
5656
5757
- name: Build and push Docker image
58-
uses: docker/build-push-action@v7
58+
uses: docker/build-push-action@v6
5959
with:
6060
context: .
6161
file: ./Dockerfile

.github/workflows/scheduled-security.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
name: Scan Production Image
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Run Trivy vulnerability scanner on GHCR Image
14+
- name: Checkout Code
15+
uses: actions/checkout@v4
16+
17+
- name: Run Trivy vulnerability scanner
1518
uses: aquasecurity/trivy-action@master
1619
with:
17-
image-ref: 'ghcr.io/${{ github.repository }}:latest'
20+
scan-type: 'fs'
1821
format: 'table'
1922
severity: 'CRITICAL,HIGH'
2023
ignore-unfixed: true

0 commit comments

Comments
 (0)