Skip to content

Commit

Permalink
Merge pull request #23 from Kerosene-Labs/update-workflow
Browse files Browse the repository at this point in the history
splitting codeql to its own job
  • Loading branch information
hlafaille authored Dec 13, 2024
2 parents 6305f2e + 455657b commit d91af58
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/sdlc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,29 @@ on:
- main

jobs:
codeql:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
actions: read
security-events: write
steps:
- uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'java,javascript' # Specify your project's languages

- name: CodeQL Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language-security-and-quality' # Customize category if needed

build:
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -44,19 +67,6 @@ jobs:
- name: Build with Maven
run: mvn -B package --file pom.xml -Dproject.version=${PROJECT_VERSION}

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'java,javascript' # Specify your project's languages

- name: CodeQL Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language-security-and-quality' # Customize category if needed

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit d91af58

Please sign in to comment.