Commit graph

90 commits

Author SHA1 Message Date
anchore-actions-token-generator[bot]
b05f37f66c
Update grype bootstrap tools to latest versions. (#956)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-10-24 10:25:24 -04:00
anchore-actions-token-generator[bot]
90ac37d00d
Update grype bootstrap tools to latest versions. (#947)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-10-06 11:08:55 -04:00
Alex Goodman
d4587ddeec
Add in-depth quality gate checks (#949)
* add in-depth quality gate checks

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add quality tests to PR checks

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-10-05 16:26:26 -04:00
anchore-actions-token-generator[bot]
a4eb7ac2ce
Update grype bootstrap tools to latest versions. (#945)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-10-04 10:12:33 -04:00
anchore-actions-token-generator[bot]
047e662c11
Update grype bootstrap tools to latest versions. (#935)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-09-26 10:39:44 -04:00
anchore-actions-token-generator[bot]
345d8494fd
Update grype bootstrap tools to latest versions. (#925)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-09-19 10:48:51 -04:00
anchore-actions-token-generator[bot]
df571a1a88
Update grype bootstrap tools to latest versions. (#907)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-08-31 09:05:19 -04:00
anchore-actions-token-generator[bot]
b31d28546b
Update grype bootstrap tools to latest versions. (#905)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-08-30 09:17:52 -04:00
anchore-actions-token-generator[bot]
a027c74c2c
Update grype bootstrap tools to latest versions. (#903)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-08-29 10:30:39 -04:00
anchore-actions-token-generator[bot]
198326745b
Update grype bootstrap tools to latest versions. (#896)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-08-25 09:14:46 -04:00
Alex Goodman
ea4b250055
Fix docker build typo (#891) 2022-08-24 17:07:48 +00:00
anchore-actions-token-generator[bot]
9d3e40079b
Update grype bootstrap tools to latest versions. (#886)
* Update grype bootstrap tools to latest versions.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
Co-authored-by: Weston Steimel <weston.steimel@anchore.com>
2022-08-23 20:09:56 +00:00
Weston Steimel
d463d74178
workflow to create automated PRs to update bootstrap tools (#883)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-08-22 17:59:54 +00:00
Michael de Senna
80f9e04289
feat: enrich db check cmd feedback (#853)
Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-08-03 16:34:27 -04:00
Christopher Angelo Phillips
ad9f0ac76e
update syft version location for Makefile (#865) 2022-08-03 12:54:29 -04:00
Christopher Angelo Phillips
6810fa5809
move docker release into separate release workflow (#862) 2022-08-03 13:10:40 +00:00
Weston Steimel
147cd7938f
bump bouncer to v0.4.0 (#851)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-07-29 16:56:13 +01:00
Christopher Angelo Phillips
74fd591caf
update golanci-lint, goreleaser, cosign (#850) 2022-07-28 14:55:14 -04:00
Sambhav Kothari
9f70cdbf24
add initial support for embedded CycloneDX VEX documents (#678) 2022-04-28 12:49:12 -04:00
Jonas Xavier
50a6a09c86
Upgrade CI to go1.18 (#687)
* upgrade CI to Go1.18

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* remove golanci-lint go1.17 job

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* fix error from gocritic (linter)

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>
2022-03-22 12:02:14 -07:00
Jonas Xavier
dae6411c5c
upgrade github workflows to go 1.18 (#649)
* upgrade github workflows to go 1.18

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* upgrade syft & set go1.18 for CI workflows

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* go mod tidy

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* add go1.17 static analysis

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* fix yaml comment

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>
2022-03-17 14:58:20 -07:00
Alex Goodman
ad9918a681
Add gosimports linter (#647) 2022-03-03 14:50:24 -05:00
Alex Goodman
5aa85338d6
Normalize release assets and refactor install.sh (#630)
* refactor release to keep snapshot assets in parity with release assets

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* refactor install.sh and put under test

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* tidy go.sum

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add mac acceptance test to github actions workflow

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* rm use of goreleaser in cli tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* go mod tidy with go 1.17

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-02-11 19:24:25 +00:00
Alex Goodman
c9f2716389
Abstract upstream package before matching (#607)
* add metadata extraction from pURLs

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* extract upstream packages before matching

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* put pkg.UpstreamPackages under test

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove pURL related processing

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* pull in syft spdx decoding

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* allow for more flexible GHSA namespace and source extraction

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add matching parity integration tests for all supported formats

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump syft to get spdx tv fix

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-02-10 21:43:12 +00:00
Vijay Pillai
e21f37494e
Update go-bouncer to v0.3.0 (#605)
Signed-off-by: Vijay Pillai <vijay.pillai@anchore.com>
2022-01-26 16:15:33 +00:00
Alex Goodman
6e3aa6a8d7
Add strong distro type (#585)
* add strong distro type

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* nit changes

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update grype/db package to use distro pointer

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* source distro type from release name

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump syft to pull in distro type updates

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump lint timeout

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-12 13:47:27 -05:00
Alex Goodman
51e1b6307b
Update syft, jotframe, and validations pipeline (#512)
* update syft and jotframe

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update validations and release pipeline

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* moved terminal package to golang.org/x/term

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update integration tests to account for package relationships

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add license exception for xz

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update Location and Coordinate references

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove benchmark tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove mac acceptance tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add syft-grype relationship notes in DEVELOPING.md

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-30 18:10:07 +00:00
Alex Goodman
fc8e3fbf49
bump chronicle to v0.3.0 (#497)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-13 18:56:47 -08:00
Alex Goodman
afc9de6058
Fix hang when running as a subprocess (#484)
* use named pipe bit on stdin as indicator for piped input

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* ensure stdin is ignored when the CLI hints are present

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add CLI test to cover subprocess integration behavior

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* added test case for java regression

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove extra line in makefile

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-29 14:51:58 +00:00
Christopher Angelo Phillips
9d245e3d9d
update CI regression and add docker manifests (#479)
* see if QEMU offers support

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>

* update QEMU support before cli verification

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-26 10:04:38 -04:00
Alex Goodman
1e7218b01f
add chronicle as changelog generator (#468)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-21 16:30:24 -04:00
Alex Goodman
6fe9fc2c8c
update linter + fix whitespace (#443)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-06 09:49:42 -04:00
Conor Nosal
1c3605dfa6
Support gomod configuration in goreleaser (#391)
* Support gomod configuration in goreleaser

Signed-off-by: Conor Nosal <cnosal@vmware.com>

* switch to goreleaser build for snapshots + bump version

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* modify goreleaser buildx option due to deprecation

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add snapshot flag to builds

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-01 09:37:36 -04:00
Vijay Pillai
1a7c9d1779
Bugfixes + Integration test for sbom input vs grype library comparison (#424)
This change both adds a test to identify and fixes differences between loading sboms from json and loading sboms from Syft as a library.
* adds integration test that compares SBOM input vs image input
* fix integration test cache path
* Add handler for ApkMetadataType in partialSyftPackage.UnmarshalJSON
* Fix Epoch missing from Package.New RpmdbMetadataType handler and update RpmDbMetadata test in TestNew_MetadataExtraction
* bump syft to version 0.24.0
* update license check for packageurl-go

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
Co-authored-by: Vijay Pillai <vijay.pillai@anchore.com>

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Signed-off-by: Vijay Pillai <vijay.pillai@anchore.com>
2021-09-22 21:53:32 -04:00
Christopher Angelo Phillips
fe00b3c314
Enhance version cmd with SYFT_VERSION (#420)
* update command to take in SYFT_VERSION

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>

* add dynamic input to build command for ci

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-09-16 16:08:07 -04:00
Zane Burstein
d169d5292a Added goreleaser-install.sh and execution in make bootstrap target
Previous install of goreleaser v 0.160.0 was being done with curl command to https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh, but there have been changes to that script that broke bootstrap. Copied the shell script to repo and changed the checksum file name to goreleaser_checksums.txt

Signed-off-by: Zane Burstein <zane.burstein@anchore.com>
2021-09-07 14:20:13 -07:00
Alex Goodman
c7f33a8e4f
bump grype-db version to use main branch
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-07-20 12:18:29 -04:00
Dan Luhring
6f0b1995d0
Stop tidying go modules during bootstrap
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-07-01 14:45:01 -04:00
Josh Soref
14b28ff79b
Spelling (#336)
Correct spelling errors
2021-06-16 13:55:29 +00:00
Alex Goodman
14cceee5e8
correct validate-grype-test-target check
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-06-01 21:15:43 -04:00
Alex Goodman
d8aedf8117 use test config for schema validations
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-05-26 12:30:21 -04:00
Alex Goodman
f99da01100 add staging update-url to cli tests + add pre-release check
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-05-26 12:30:21 -04:00
Dan Luhring
ede8990906
Update script name for consistency
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-05-26 08:54:18 -04:00
Dan Luhring
bf1cfcd848
Clarify message in go mod checking
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-05-26 08:53:25 -04:00
Alex Goodman
a6585f4842
add go.mod tidy CI check
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-05-25 13:43:53 -04:00
Alex Goodman
a958acc57b
safely join paths derived from tar headers
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-04-15 08:53:57 -04:00
Alex Goodman
6ddea51209
go mod tidy during bootstrap target to ensure consistent go.sum state
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-04-14 16:56:25 -04:00
Alex Goodman
de32481b0c
bump linting timeout for CI
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-04-13 16:31:14 -04:00
Alex Goodman
c72803eb24
unify cli test make target
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-04-13 16:13:11 -04:00
Alex Goodman
9fd20b910e
ensure docker is auth'd during entire release process
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-03-26 10:11:59 -04:00