Skip to content

Commit

Permalink
bincapz: rename to malcontent (#29171)
Browse files Browse the repository at this point in the history
<!---
Provide a short summary in the Title above. Examples of good PR titles:
* "ruby-3.1: new package"
* "haproxy: fix CVE-2014-123456"
-->

<!--
Please include references to any related issues or delete this section
otherwise.
 -->

Related: chainguard-dev/malcontent#464

### Pre-review Checklist

<!--
This checklist is mostly useful as a reminder of small things that can
easily be
forgotten – it is meant as a helpful tool rather than hoops to jump
through.

At the moment of this PR you have the most information on what all the
change
will affect, so please take the time to jot it down.

Put an `x` in all the items that apply, make notes next to any that
haven't been
addressed, and remove any items that are not relevant to this PR.

-->

#### For version bump PRs
<!-- remove if unrelated -->
- [x] The `epoch` field is reset to 0

---------

Signed-off-by: egibs <[email protected]>
Signed-off-by: Ajay Kemparaj <[email protected]>
Co-authored-by: Ajay Kemparaj <[email protected]>
  • Loading branch information
egibs and ajayk authored Sep 23, 2024
1 parent 5ee6002 commit 1b156a3
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 67 deletions.
67 changes: 0 additions & 67 deletions bincapz.yaml

This file was deleted.

67 changes: 67 additions & 0 deletions malcontent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package:
name: malcontent
version: 1.0.1
epoch: 0
description: enumerate file capabilities, including malicious behaviors
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ca-certificates-bundle
- yara

environment:
contents:
packages:
- openssl-dev
- yara-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/chainguard-dev/malcontent
tag: v${{package.version}}
expected-commit: b9d01fd45e030fa201b13679f843ed4a6e5473fd

- uses: go/build
with:
packages: .
ldflags: -s -w
output: mal

- uses: strip

test:
environment:
contents:
packages:
- openssl
- crane
pipeline:
- name: Verify malcontent version
runs: |
set -o pipefail
output=$(mal --version)
test "$output" == "malcontent version v${{package.version}}"
- name: Verify malcontent on yara
runs: |
set -o pipefail
mal analyze /usr/bin/yara | grep LOW
- name: Verify malcontent on openssl
runs: |
set -o pipefail
mal analyze /usr/bin/openssl | grep MED
- name: Verify malcontent on crane
runs: |
set -o pipefail
mal analyze /usr/bin/crane | grep MED
- name: Verify malcontent diff
runs: |
set -o pipefail
mal diff /usr/bin/openssl /usr/bin/crane | grep "[+]MED.*archives/zip"
update:
enabled: true
github:
identifier: chainguard-dev/malcontent
strip-prefix: v

0 comments on commit 1b156a3

Please sign in to comment.