Skip to content

Commit df6d380

Browse files
committed
Drop obsolete run_owasp_check input and unused secrets
build-backend-module.yml no longer accepts run_owasp_check as an input, and explicit undeclared secrets fail the workflow. Move the OWASP check into its own owasp-dependency-check.yml job that only runs on push / workflow_dispatch, and prune the build job's secrets to just the Maven credentials it actually consumes.
1 parent c56aab2 commit df6d380

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Test
1+
name: Build with Maven
22

33
on:
44
push:
@@ -7,23 +7,20 @@ on:
77
branches: [ master ]
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
13+
1014
jobs:
1115
build:
1216
uses: openmrs/openmrs-contrib-gha-workflows/.github/workflows/build-backend-module.yml@main
13-
with:
14-
java_versions: '[8]'
15-
main_java_version: '8'
16-
run_owasp_check: false
1717
secrets:
1818
MAVEN_REPO_USERNAME: ${{ secrets.MAVEN_REPO_USERNAME }}
1919
MAVEN_REPO_API_KEY: ${{ secrets.MAVEN_REPO_API_KEY }}
20-
BOT_GH_TOKEN: ${{ secrets.OMRS_BOT_GH_TOKEN }}
2120

2221
owasp-dependency-check:
2322
if: ${{ github.event_name != 'pull_request' }}
2423
uses: openmrs/openmrs-contrib-gha-workflows/.github/workflows/owasp-dependency-check.yml@main
25-
with:
26-
java_version: '8'
2724
secrets:
2825
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
2926
BOT_GH_TOKEN: ${{ secrets.OMRS_BOT_GH_TOKEN }}

0 commit comments

Comments
 (0)