Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/gradle-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
workflow_call:
inputs:
project_name:
# format: <organisation>/<project_name>
description: "The project name to run the job. Prevent forks to run snapshot job"
description: "Name in <organisation>/<project_name> format. Prevents forks to run the job"
required: true
type: string
java_version:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/maven-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
# Map the inputs that the caller needs to provide
inputs:
project_name:
# format: <organisation>/<project_name>
description: 'The project name to run the job. Prevent forks to run snapshot job'
description: 'Name in <organisation>/<project_name> format. Prevents forks to run the job'
required: true
type: string
java_version:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/mend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Mend CLI scan
on:
workflow_call:
inputs:
project_name:
description: "Name in <organisation>/<project_name> format. Prevents forks to run the job"
required: true
type: string
SCA:
required: true
type: boolean
Expand Down Expand Up @@ -47,7 +51,8 @@ on:
required: true

jobs:
build-and-scan:
scan:
if: github.repository == inputs.project_name
runs-on: ubuntu-latest

env:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/sbt-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
workflow_call:
inputs:
project_name:
# format: <organisation>/<project_name>
description: "The project name to run the job. Prevent forks to run snapshot job"
description: "Name in <organisation>/<project_name> format. Prevents forks to run the job"
required: true
type: string
fetch_all_commits:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ Workflows run in the context of the PR from a fork do not have access to the sec

To exclude paths from being scanned, specify `SCA_EXCLUDES` and/or `SAST_EXCLUDES` values, in the comma-separated paths format: `'dir1/**,dir2/file.txt'`.

`project_name` **must** be set by the caller (format: <organisation>/<project_name>).

<details>
<summary>Example of push to main and cronjob usage</summary>

Expand Down Expand Up @@ -247,7 +249,7 @@ Workflow for deploying snapshot versions to Maven Central. Gated to the upstream
- **Tasks**: Deploy our SNAPSHOT version of our project to Maven Central
Optionally builds and pushes a Quarkus Jib image to Quay.io.
- **Inputs**: The following inputs are available to be overridden
* project_name : **Must** be set by te caller.
* project_name : **Must** be set by the caller (format: <organisation>/<project_name>).
* java_version (default: `21`)
* snapshot_deploy_command (default `mvn -B -V deploy`)
* fetch_all_commits (default: `false`)
Expand Down