Skip to content

Commit

Permalink
HOCS-6803: Separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephRogerson committed Mar 6, 2024
1 parent 48cff62 commit 8f89fc3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Build"

on:
push:
branches: [ main ]
pull_request:
types: [ labeled, opened, reopened, synchronize ]
schedule:
- cron: '45 12 * * 1'

jobs:
build:
name: 'Gradle build'
uses: UKHomeOffice/sas-github-workflows/.github/actions/gradle-build-project@v2
with:
java_version: '17'
17 changes: 5 additions & 12 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@ on:

jobs:
scan:
name: 'build + scan'
steps:
- name: 'Gradle build'
uses: UKHomeOffice/sas-github-workflows/.github/actions/gradle-build-project@v2
with:
java_version: '17'
- name: 'Trivy scans'
uses: UKHomeOffice/sas-github-workflows/.github/workflows/trivy.yml@v2
with:
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'
checkoutSubmodule: true
secrets: inherit
uses: UKHomeOffice/sas-github-workflows/.github/workflows/trivy.yml@v2
with:
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'
checkoutSubmodule: true
secrets: inherit

0 comments on commit 8f89fc3

Please sign in to comment.