Skip to content

Commit 13b31d1

Browse files
author
Chanaka Balasooriya
committed
fix github workflow by updating action versions and upgrade docker compose postgres version to 17
1 parent 83819c8 commit 13b31d1

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v3
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
71+
uses: github/codeql-action/analyze@v3

.github/workflows/workflow.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
services:
1717
postgres:
18-
image: postgres:13
18+
image: postgres:17
1919
env:
2020
POSTGRES_PASSWORD: postgres
2121
# Set health checks to wait until postgres has started
@@ -28,13 +28,14 @@ jobs:
2828
- 5432:5432
2929

3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
3232
- name: Set up JDK
33-
uses: actions/setup-java@v1
33+
uses: actions/setup-java@v4
3434
with:
35-
java-version: 8
35+
distribution: 'temurin'
36+
java-version: '21'
3637
- name: Cache local Maven repository
37-
uses: actions/cache@v2
38+
uses: actions/cache@v4
3839
with:
3940
path: ~/.m2/repository
4041
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
db:
4-
image: 'postgres:13'
4+
image: 'postgres:17'
55
environment:
66
POSTGRES_PASSWORD: 'postgres'
77
ports:

0 commit comments

Comments
 (0)