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

issue when try to run sobelow/action@v1 on pipeline #1

Closed
murilobauerc opened this issue Mar 31, 2023 · 3 comments
Closed

issue when try to run sobelow/action@v1 on pipeline #1

murilobauerc opened this issue Mar 31, 2023 · 3 comments

Comments

@murilobauerc
Copy link

murilobauerc commented Mar 31, 2023

Hello ✋🏻 !
I'm using sobelow as one of my pipeline steps and when I ran it gives me the following error:

warning: you must append "/github/home/.mix/escripts" to your PATH if you want to invoke escripts by name

** (ArgumentError) unknown application: :castore
(elixir 1.11.2) lib/application.ex:896: Application.app_dir/1
(elixir 1.11.2) lib/application.ex:923: Application.app_dir/2
(sobelow 0.12.1) lib/sobelow.ex:552: Sobelow.get_sobelow_version/0
(sobelow 0.12.1) lib/sobelow.ex:581: Sobelow.maybe_prompt_update/2
(sobelow 0.12.1) lib/sobelow.ex:34: Sobelow.run/0
(elixir 1.11.2) lib/kernel/cli.ex:124: anonymous fn/3 in Kernel.CLI.exec_fun/2

This is how I set up sobelow:

jobs:
  code-analysis:
    name: Code Analysis
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - name: Run Sobelow
        uses: sobelow/action@v1
        with:
          report: false
          flags: --config
@murilobauerc murilobauerc changed the title issue when try to issue when try to run sobelow on pipeline Mar 31, 2023
@murilobauerc murilobauerc changed the title issue when try to run sobelow on pipeline issue when try to run sobelow/action@v1 on pipeline Mar 31, 2023
@murilobauerc
Copy link
Author

@GriffinMB pinging if you can assist here or give any tips on how to handle this issue? thank you very much!

@houllette
Copy link

Hey @murilobauerc - this issue was just raised over in the main Sobelow repo and I did some digging to figure out how to remediate.

The TL;DR on how to fix this for yourself as a temporary work around is to provide the --private flag to the action step. Sorry for the inconvenience, hopefully addressing in the latest release soon

@houllette
Copy link

@murilobauerc - this should be fixed now!

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

2 participants