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

add binary_sha discard #42

Merged

Conversation

josedonizetti
Copy link
Contributor

Allow discard by binaries due to conditional executions, and also temporary binaries, for example:

The path to this binary changes every build:

  {
    "user_id": 1001,
    "process_name": "build-tests.tes",
    "binary_path": "/tmp/go-build384123577/b001/build-tests.test",
    "binary_sha256": "d6785ef73341fc6da8e21e94203f2002cb304eae72643fbe5d1e1e7e97a9e9cc",
    "process_args": [
      "-test.paniconexit0",
      "-test.timeout=10m0s"
    ],
    "process_env": null
  },

This is sometimes executed, and sometimes not.

 {
    "user_id": 1001,
    "process_name": "asm",
    "binary_path": "/opt/hostedtoolcache/go/1.18.10/x64/pkg/tool/linux_amd64/asm",
    "binary_sha256": "7b84d894a4d62bab25ddef9a1424d828cb50b3aa3e1ddd66a075acbeb7739631",
    "process_args": [
      "/opt/hostedtoolcache/go/1.18.10/x64/pkg/tool/linux_amd64/asm",
      "-V=full"
    ],
    "process_env": null
  },

@josedonizetti josedonizetti merged commit 265492c into aquasecurity:stop Jan 30, 2023
@josedonizetti josedonizetti deleted the add-binary-sha-discard branch January 30, 2023 11:53
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.

2 participants