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

run-iq-cli ignores environment variables #4

Open
svc-seaq-spu opened this issue Nov 18, 2024 · 2 comments
Open

run-iq-cli ignores environment variables #4

svc-seaq-spu opened this issue Nov 18, 2024 · 2 comments

Comments

@svc-seaq-spu
Copy link

I am trying to use your action sonatype/actions/run-iq-cli as follows:

- uses: sonatype/actions/setup-iq-cli@v1
  with:
    iq-cli-version: 'latest'
- uses: actions/setup-java@v4
  with:
    distribution: 'temurin'
    java-version: '17'
- uses: sonatype/actions/run-iq-cli@v1
  with:
    iq-server-url: "https://internal-iq-server"
    ...
  env:
    JAVA_TOOL_OPTIONS: "-Djavax.net.ssl.trustStore=/var/lib/ca-certificates/java-cacerts"

I am getting the following error:

Error:  The IQ Server https://internal-iq-server/api/v2/applications could not be contacted: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Your action sonatype/actions/run-iq-cli should have an optional input for java command-line options or it should pick up the environment variable JAVA_TOOL_OPTIONS.

@norbertbaliga
Copy link

That would be a resolution for my issue too that opened recently: #3

@gvazquezmorean
Copy link

We have created an internal ticket to follow up on this issue. Thank your for reporting it.

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

No branches or pull requests

3 participants