Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github actions maven snyk and sonar #8

Closed
wants to merge 15 commits into from
Closed

github actions maven snyk and sonar #8

wants to merge 15 commits into from

Conversation

tubbynl
Copy link
Contributor

@tubbynl tubbynl commented Jan 31, 2022

add build steps

  • maven build
  • maven artifact publish
  • snyk check
  • snyk report uploaded as github 'Code scanning alerts'
  • sonarqube check
  • sonarqube report

for Snyk it requires the Snyk auth token to be added as Github action secret ( Settings -> Secrets -> New Repository Secret; name = SNYK_TOKEN )

@pschildkamp SonarQube is non-functional; i think most settings / config is there. But i can't create a correct "Organisation"

it fails (locally and on github actions) with

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project backend: You're not authorized to run analysis. Please contact the project administrator. -> [Help 1]

most config is handled with maven properties, only the SONAR_TOKEN is expected to be a env var and valid

[WARNING] The requested profile "coverage" could not be activated because it does not exist.
…sation in sonarqube

Error:  Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project backend: You're not authorized to run analysis. Please contact the project administrator. -> [Help 1]
@tubbynl tubbynl requested a review from pschildkamp January 31, 2022 20:03
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adopt JDK is deprecated and replaced with Temurin (distribution: 'temurin').

The two following properties are displayed on your project
at https://sonarcloud.io
-->
<sonar.organization>tubbynl</sonar.organization>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

littil

@tubbynl
Copy link
Contributor Author

tubbynl commented Apr 3, 2022

replaced by #21

@tubbynl tubbynl closed this Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants