Skip to content

Commit 8ee361a

Browse files
committed
build_maven_package.yml 1.0.1
Added DISABLE_MAVEN_DEPENDENCY_SUBMISSION variable
1 parent 9b2cddc commit 8ee361a

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/build_maven_package.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CI with maven build and scan
22
#
3-
# version 1.0.0
3+
# version 1.0.1
44
#
55
# see : https://universe.fugerit.org/src/docs/conventions/workflows/build_maven_package.html
66

@@ -58,7 +58,7 @@ jobs:
5858
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
5959
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6060
- name: Build and analyze
61-
run: mvn -B clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,full,metadata,sonarfugerit,buildreact -Dsonar.projectKey=fugerit-org_${{github.event.repository.name}}
61+
run: mvn -B clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,full,metadata,sonarfugerit -Dsonar.projectKey=fugerit-org_${{github.event.repository.name}}
6262
env:
6363
# Needed to get some information about the pull request, if any
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -67,4 +67,6 @@ jobs:
6767

6868
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
6969
- name: Update dependency graph
70+
# if DISABLE_MAVEN_DEPENDENCY_SUBMISSION is set to true, skip this step
71+
if: ${{ vars.DISABLE_MAVEN_DEPENDENCY_SUBMISSION != 'true' }}
7072
uses: advanced-security/maven-dependency-submission-action@main

src/docs/conventions/workflows/build_maven_package.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a maven java workflow responsible for running maven build, scan and, in some cases, other actions like docker image build.
44

5-
**Version** : 1.0.0
5+
**Version** : 1.0.1
66

77
There are a few steps which are always run :
88

@@ -14,4 +14,13 @@ Optionally the workflow may :
1414

1515
- Docker image build and push
1616

17-
For an example of this project look at [build_maven_package.yml](https://github.com/fugerit-org/fj-doc/blob/main/.github/workflows/build_maven_package.yml)
17+
For an example of this project look at [build_maven_package.yml](https://github.com/fugerit-org/fj-doc/blob/main/.github/workflows/build_maven_package.yml)
18+
19+
## step : Update dependency graph
20+
21+
To fix the issue :
22+
[Github action broken with 4.0.1](https://github.com/advanced-security/maven-dependency-submission-action/issues/65)
23+
24+
Setting github variable `DISABLE_MAVEN_DEPENDENCY_SUBMISSION` to `true`, the step will be disabled.
25+
26+
It is possible to setup the variable at repository or account level.

0 commit comments

Comments
 (0)