Skip to content

Commit

Permalink
chore(ci): use GH default CodeQL (#86)
Browse files Browse the repository at this point in the history
* chore(ci): replace custom w/ default GH CodeQL

* Remove extra job
  • Loading branch information
DerekRoberts authored Oct 30, 2024
1 parent aeadbbb commit 24d681d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 71 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/reusable-tests-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,6 @@ on:
workflow_call:

jobs:
vars:
name: Variables
runs-on: ubuntu-latest
outputs:
semver: ${{ steps.semver.outputs.version }}
tag: ${{ steps.semver.outputs.tag }}
pr: ${{ steps.pr.outputs.pr }}
steps:
# steps.semver.outputs.tag => needs.vars.outputs.semver
- name: PR Number
id: pr
uses: bcgov-nr/action-get-pr@v0.0.1
- uses: actions/checkout@v4
with:
ref: refs/heads/${{ github.event.repository.default_branch }}
- name: Conventional Changelog Update
uses: TriPSs/conventional-changelog-action@v5.3.0
id: semver
with:
git-branch: refs/heads/${{ github.head_ref }}
git-push: 'false'
skip-commit: 'true'
skip-on-empty: 'false'
skip-version-file: 'true'

- run: |
echo "semver=${{ steps.semver.outputs.version }}"
echo "tag=${{ steps.semver.outputs.tag }}"
trivy:
name: Repository Report
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
Expand All @@ -53,38 +24,3 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: "trivy-results.sarif"

codeql:
name: Semantic Code Analysis
runs-on: ubuntu-24.04
needs: [vars]
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: javascript,java

# Autobuild failed for Java, so building manually
- name: Set up JDK 17 and Caching maven dependencies
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "maven"
server-id: "github"

# Java builds
- name: Build Core
working-directory: core
run: mvn clean package install -DskipTests -Dtests.skip=true

- name: Build Spring
working-directory: spring
run: mvn clean package -DskipTests -Dtests.skip=true

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,7 @@ buildNumber.properties
.classpath

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
.vscode/

# Local History for Visual Studio Code
.history/
Expand All @@ -229,4 +224,4 @@ config/application-dev-*.yml
**/*.iml

.DS_Store
**/.DS_Store
**/.DS_Store

0 comments on commit 24d681d

Please sign in to comment.