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

Unexpected errors attempting to generate SBDOM and then update it: "Error: input file does not exist" #35

Open
kallevmercury opened this issue Jan 15, 2025 · 0 comments

Comments

@kallevmercury
Copy link
Contributor

We're encountering an error running the action and it's unclear what the root cause is. The last step that appears successful is this one:

SBOM Generated: ./bom.json

Is it possible the ./bom.json is not actually being generated despite the previous command exiting with a zero status?

Stacktrace:

Installed syft
Generating SBOM using: manifest-cli sbom --generator-preset="recommended" --generator-config="" --file=./bom --output="cyclonedx-json" --name="<Snip>" --generator="syft" --publish=false /home/runner/work/<Snip> --version=""0.1.0""
SBOM Generated: ./bom.json
node:internal/errors:984
  const err = new Error(message);
              ^

Error: Command failed: SBOM_FILENAME=./bom.json SBOM_OUTPUT=cyclonedx-json SBOM_NAME=<Snip> SBOM_VERSION="0.1.0" bash /home/runner/work/_actions/manifest-cyber/manifest-github-action/main/update-sbom.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   989  100   989    0     0   9384      0 --:--:-- --:--:-- --:--:--  9330
100   989  100   989    0     0   93[67](<Snip>)      0 --:--:-- --:--:-- --:--:--  9330

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'SBOM_FILENAME=./bom.json SBOM_OUTPUT=cyclonedx-json SBOM_NAME=<Snip> SBOM_VERSION="0.1.0" bash /home/runner/work/_actions/manifest-cyber/manifest-github-action/main/update-sbom.sh',
  stdout: 'Error: input file does not exist\n',
  stderr: '  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n' +
    '                                 Dload  Upload   Total   Spent    Left  Speed\n' +
    '\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100   989  100   989    0     0   93[84](<Snip>)      0 --:--:-- --:--:-- --:--:--  9330\r100   989  100   989    0     0   9367      0 --:--:-- --:--:-- --:--:--  9330\n'
}
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