Commit graph

223 commits

Author SHA1 Message Date
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
Christopher Angelo Phillips
8fe761b41f
remove env variable dependencies and keychain from signing script (#864) 2022-08-03 14:55:15 +00:00
Christopher Angelo Phillips
d264309035
macos-latest for signing (#863) 2022-08-03 14:09:44 +00:00
Christopher Angelo Phillips
6810fa5809
move docker release into separate release workflow (#862) 2022-08-03 13:10:40 +00:00
Christopher Angelo Phillips
5cb0bf742b
revert to old docker action (#861) 2022-08-03 11:56:22 +00:00
Christopher Angelo Phillips
ad55091216
push older version for mac runner stability (#852) 2022-08-01 10:32:06 -04:00
Christopher Angelo Phillips
a6ec8f11be
add env variables and keychain for GHCR publish (#843) 2022-07-25 15:26:14 +00:00
Keith Zantow
4ed0704dcf
Auto-PR needs to run go mod tidy (#727) 2022-04-13 16:30:53 -04:00
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
Keith Zantow
0b76016235
Directly install gon (#667) 2022-03-15 13:47:15 +00:00
Alex Goodman
4af3cf7455
reduce PR CI pain and flakyness (#652) 2022-03-02 14:03:19 -05:00
Alex Goodman
b0c8dc0e57
Share import mac code signing certificate steps for release (#646) 2022-02-26 23:11:24 +00: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
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
Dan Luhring
682fb4482f
Update description for Slack link (#439)
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-09-30 21:45:22 +00: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
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
2faefdf902
update slack channels
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-07-12 08:06:47 -04:00
Dan Luhring
ab85f428fa
Remove git checkout from tidy check
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-07-01 14:45:01 -04:00
Dan Luhring
81f68a1562
Modify tidy check to compare against git HEAD
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-07-01 14:45:01 -04:00
Dan Luhring
c1e70893e6
Replace links to Slack channels with public signup link (#325)
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-05-26 13:24:23 +00: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
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
d7a323b0be
Add signed and notarized ZIP release asset
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2020-11-11 17:30:50 -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
86015454dc
fix grype version verbiage
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-10-15 11:51:14 -04: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
0618d1dbeb
github is picky about the issue template file extension
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-08-12 11:12:43 -04:00
Alex Goodman
d0b03fad13
add slack links to issue selection (#123)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-08-12 11:08:24 -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
50d7251a0b
add issue templates (#112)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2020-08-10 14:39:49 -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