Commit graph

85 commits

Author SHA1 Message Date
Keith Zantow
5ff7b07748
chore: add github token to quality tests (#1056) 2023-01-11 13:48:02 -05:00
Christopher Angelo Phillips
26438862df
chore: update default packages to read (#1007) 2022-11-21 13:07:42 -05:00
Christopher Angelo Phillips
d5c93aa00f
scoped: token release for content write on image assets (#1002) 2022-11-18 22:32:49 +00:00
Christopher Angelo Phillips
3e0af43383
chore: pin dependencies (#994) 2022-11-14 21:23:42 +00:00
Christopher Angelo Phillips
e1d3302b9a
chore: code-ql top level read check (#993) 2022-11-14 14:30:52 -05:00
Christopher Angelo Phillips
02fe5e9c76
chore: update codeql to pinned v2 with correct write permissions 2022-11-14 15:39:45 +00:00
Joyce
8f28a6ea96
Update token permissions to be read-only (#988)
Closes https://github.com/anchore/grype/issues/984
2022-11-14 08:10:09 -05:00
Joyce
2cd2ef5340
Enable the Scorecard Github Action and badge (#929) 2022-11-03 14:24:20 -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
Christopher Angelo Phillips
78d87c1e11
grype release message update (#914) 2022-09-06 11:46:59 -04:00
Alex Goodman
ea4b250055
Fix docker build typo (#891) 2022-08-24 17:07:48 +00:00
Weston Steimel
0de5dfdd86
fix getting latest gosimports version (#885)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-08-22 18:27:50 +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
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