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

GHA attempts to analyze README file, not app #71

Open
ericzinnikas opened this issue Aug 19, 2022 · 1 comment
Open

GHA attempts to analyze README file, not app #71

ericzinnikas opened this issue Aug 19, 2022 · 1 comment

Comments

@ericzinnikas
Copy link

Attempting to leverage this in a GHA, with the following config:

  appinspect:
    name: app inspect
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository code
        uses: actions/checkout@v2
      - name: Run appinspect
        uses: splunk/appinspect-cli-action@537ffc049c9b25d76be2461f4c37d258f5993679 # pin to v1.5.0
        with:
          app_path: "build/"

However, appinspect fails as it attempts to analyze build/README and not build/:

scan target build//README
appinspect
  + '[' -f build/ ']'
  + ls build//
  + D=build/
  + files=($D/*)
  + SCAN=build//README
  + echo scan target build//README
  + '[' '!' -f build//README ']'
  + '[' '!' -z ']'
  + '[' '!' -z ']'
  + echo ::group::appinspect
  + rm -f appinspect_result.json
  running: splunk-appinspect inspect build//README --output-file appinspect_result.json --mode test
  + echo running: splunk-appinspect inspect build//README --output-file appinspect_result.json --mode test
  + splunk-appinspect inspect build//README --output-file appinspect_result.json --mode test
  Enable Python analyzer.
  Validating: README Version: [MISSING `default/app.conf`]
  .FFFFFF.FF.FFFSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
  SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
  SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
  SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
  SSSSSSSSS

The contents of the build dir are as follows:

$ find ./build/
./build
./build/default
./build/default/app.conf
./build/default/savedsearches.conf
./build/README
@ericzinnikas
Copy link
Author

Looks like this issue stems from the fact that the action config here indicates app_path should be set to the "path to the application directory to be inspected", however the checks here expect a fully packaged app (.tar.gz) and not a directory.

In local testing, it seems that either should be supported? Or is this not the case?

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

1 participant