Commit graph

48 commits

Author SHA1 Message Date
Keith Zantow
b1e7189a4a
Add workflow for automatic PR for new Syft releases (#722) 2022-04-13 13:08:04 -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
4af3cf7455
reduce PR CI pain and flakyness (#652) 2022-03-02 14:03:19 -05:00
Alex Goodman
598af89b2e
Upgrade install.sh to support installations for previous versions (#636) 2022-02-15 17:29: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
Christopher Angelo Phillips
16e6bee766
update go -> 1.17 (#628)
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-02-11 10:50:13 -05:00
Alex Goodman
a7ce318b20
fix release quality gate section (#518)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-03 17:11:26 +00: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
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
9349060765
Add QEMU to acceptance tests flow (#483)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-26 11:51:53 -04: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
dc1f682e4b
remove unnecessary codeql checkout from second parent commit (#458)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-18 13:18:56 -04:00
Keith Zantow
1d08335bb3
Add SBOM to releases (#429)
Signed-off-by: Keith Zantow <kzantow@gmail.com>
2021-09-24 20:22:14 -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
Alex Goodman
a0767aaa04
fix release pipeline quality gate
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-04-14 14:56:56 -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
9b7988178c
bump to building and testing on golang 1.16
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-04-01 10:01:09 -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
Alex Goodman
5dc5b440e4
move docker login after keychain creation
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-03-25 16:44:23 -04:00
Alex Goodman
1010a09d6b
manually login to docker via cli during release
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-03-23 17:55:27 -04:00
Alex Goodman
887b3f0303
move snapshot builds to linux box
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-03-23 12:33:21 -04:00
Alex Goodman
a399647afc
add docker image to release process
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-03-23 10:00:13 -04:00
Dan Luhring
e93bf99d9d
Use snapshot build for pipeline CLI testing
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-03-09 08:58:02 -05:00
Dan Luhring
bf9cf38362
Add Slack notifications for acceptance test failures
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2020-11-05 12:49:33 -05:00
Dan Luhring
263da9e3a8
Add bootstrap step to acceptance workflow
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2020-11-05 09:55:23 -05:00
Dan Luhring
5725f26c04
Resolve security warning for macOS users (#194)
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2020-11-05 08:50:58 -05:00
Alex Goodman
50e9800594
update release gate checks
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-10-23 14:12:34 -04:00
Alex Goodman
ed27c7fcfa
Merge pull request #185 from VinodAnandan/main
Enable CodeQL Security Scan
2020-10-16 19:22:19 -04:00
Vinod Anandan
fa5e7abe38 Enable CodeQL Security Scan
https://github.blog/2020-09-30-code-scanning-is-now-available/

Signed-off-by: Vinod Anandan <vinod.anandan@jpmorgan.com>
2020-10-17 00:11:09 +01:00
Alex Goodman
d26eff6c1d
remove greeter action since it is broken for forked PRs (#186)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-10-15 10:20:00 -04:00
Robert Prince
9363f27627
Add first issue/PR welcome message action (#168)
* Add first issue/PR welcome message action

Signed-off-by: Robert Prince <robert.prince@anchore.com>

* update first-pr-issue message with a simple greeting

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

* simplify first message to a greeting

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

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2020-10-09 10:20:08 -04:00
Alex Goodman
b787a69520
run tests on fork PRs (#180)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-10-09 07:45:09 -04:00
Alex Goodman
86b0ae1ada
migrate to GHA pipeline (#176)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-10-07 14:57:59 -04:00
Alex Goodman
3c35e562bf
exclude size labels from release changelog
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 23:30:15 -04:00
Alex Goodman
75e3638468
add changelog generation into the release process (#167)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 16:59:00 -04:00
Alex Goodman
89a6201555
Disable prerelease version update check (#118)
* disable prerelease version update check

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

* use prerelease flag as source of truth for user notifications

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-08-11 09:54:09 -04:00
Alex Goodman
cbd6060652
Add installer script + brew tap (#116)
* add installer script + brew tap

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

* use correct token on release

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-08-10 18:57:03 -04:00
Alex Goodman
56b9576a19
Add inline-comparison as acceptance test (#106)
* add inline-compare as acceptance tests

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

* improve RPM matching with source indirection matching

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

* add comments to compare-* make targets

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

* clean inline-compare image test names

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

* bump syft version to get rpm field enhancements

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-08-10 11:03:48 -04:00
Alex Goodman
f1ad989c9b
replace master with main (#104)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-08-07 13:27:04 -04:00
Alex Goodman
81eab4e65b
pull all commits on checkout for release to build changelog (#98) 2020-08-06 08:29:06 -04:00
Alex Goodman
009dcb1a46
Ignore prerelease versions on release + add DB update URL (#76)
* ignore prerelease versions when uploading version file on release

* add db update url
2020-07-30 12:37:49 -04:00
Alex Goodman
c524fba691
use aws creds for version file upload 2020-07-27 10:12:40 -04:00
Alex Goodman
ff5e31f437
add release quality gate 2020-07-25 16:25:34 -04:00
Alex Goodman
bb2afc3a59
fix checks wait step for release 2020-07-25 11:45:26 -04:00
Alex Goodman
2835ccb23f
add snapshot check & enable release publishing 2020-07-25 11:08:54 -04:00
Alex Goodman
6340b2da3a
add release pipeline & replace imgbom with syft (#60) 2020-07-23 21:26:03 -04:00