Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
technoah2792 committed Oct 7, 2024
1 parent fc4d639 commit 843360e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/commit-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Commit Stage
on: push

jobs:
build:
name: Build and Test
runs-on: ubuntu-22.04
permissions:
contents: read
security-events: write
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Code vulnerability scanning
uses: anchore/scan-action@v3
id: scan
with:
path: "${{github.workspace}}"
fail-build: false
severity-cutoff: high
acs-report-enable: true
- name: Upload vulnerability report
uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: ${{steps.scan.outputs.sarif}}
-name: Build, unit tests and integraiton tests
run: |
chmod +x gradlew
,/gradlew build

0 comments on commit 843360e

Please sign in to comment.