Skip to content

Commit 65e2b5b

Browse files
committed
ci(github): Migrate from GitLab CI and update deprecated actions
This commit finalizes the migration from GitLab CI to GitHub Actions as the primary CI/CD platform for the project. The `.gitlab-ci.yml` file has been removed. The GitHub Actions workflow has been updated to resolve deprecation errors. The following actions have been upgraded to their latest stable versions: - actions/checkout@v3 -> v4 - actions/upload-artifact@v3 -> v4 - actions/download-artifact@v3 -> v4 - github/codeql-action/upload-sarif@v2 -> v3
1 parent 8194fbe commit 65e2b5b

2 files changed

Lines changed: 11 additions & 106 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Lint Dockerfile
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Run hadolint
1818
run: make lint
@@ -22,7 +22,7 @@ jobs:
2222
needs: lint
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626

2727
- name: Build production image
2828
run: make build
@@ -34,7 +34,7 @@ jobs:
3434
run: docker save kariricode/php-api-stack:latest | gzip > image.tar.gz
3535

3636
- name: Upload artifact
37-
uses: actions/upload-artifact@v3
37+
uses: actions/upload-artifact@v4
3838
with:
3939
name: docker-image
4040
path: image.tar.gz
@@ -44,10 +44,10 @@ jobs:
4444
needs: build
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848

4949
- name: Download image
50-
uses: actions/download-artifact@v3
50+
uses: actions/download-artifact@v4
5151
with:
5252
name: docker-image
5353

@@ -70,10 +70,10 @@ jobs:
7070
needs: build
7171
runs-on: ubuntu-latest
7272
steps:
73-
- uses: actions/checkout@v3
73+
- uses: actions/checkout@v4
7474

7575
- name: Download image
76-
uses: actions/download-artifact@v3
76+
uses: actions/download-artifact@v4
7777
with:
7878
name: docker-image
7979

@@ -100,25 +100,25 @@ jobs:
100100
needs: build
101101
runs-on: ubuntu-latest
102102
steps:
103-
- uses: actions/checkout@v3
103+
- uses: actions/checkout@v4
104104

105105
- name: Download image
106-
uses: actions/download-artifact@v3
106+
uses: actions/download-artifact@v4
107107
with:
108108
name: docker-image
109109

110110
- name: Load image
111111
run: docker load < image.tar.gz
112112

113113
- name: Run Trivy scan
114-
uses: aquasecurity/trivy-action@master
114+
uses: aquasecurity/trivy-action@0.20.0
115115
with:
116116
image-ref: "kariricode/php-api-stack:latest"
117117
format: "sarif"
118118
output: "trivy-results.sarif"
119119
severity: "CRITICAL,HIGH"
120120

121121
- name: Upload Trivy results
122-
uses: github/codeql-action/upload-sarif@v2
122+
uses: github/codeql-action/upload-sarif@v3
123123
with:
124124
sarif_file: "trivy-results.sarif"

.gitlab-ci.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)