Skip to content

Commit 18a317e

Browse files
msohngerritforge-inc
authored andcommitted
Merge "Fix SBOM workflow version on tag push and skip on forks"
2 parents 98ca95d + 629c446 commit 18a317e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/generate-maven-sbom.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ env:
2020
JAVA_DISTRO: 'temurin'
2121
PLUGIN_VERSION: '2.9.1'
2222
SBOM_TYPE: 'makeAggregateBom'
23-
PROJECT_VERSION: "${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.version }}"
23+
PROJECT_VERSION: "${{ github.event_name == 'push' && github.ref_name || github.event.inputs.version }}"
2424

2525
permissions:
2626
contents: read
2727

2828
jobs:
2929
generate-sbom:
30+
if: github.repository == 'eclipse-jgit/jgit'
3031
runs-on: ubuntu-latest
3132
permissions:
3233
contents: read

0 commit comments

Comments
 (0)