-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into 5p2O5pe25ouT/main
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
- Loading branch information
Showing
721 changed files
with
77,644 additions
and
11,835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enforce-v0: true # don't make breaking-change label bump major version before 1.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,17 @@ | ||
#!/usr/bin/env bash | ||
set -u | ||
|
||
if ! git diff-index --quiet HEAD --; then | ||
git diff-index HEAD -- | ||
git --no-pager diff | ||
echo "there are uncommitted changes, please commit them before running this check" | ||
if [ "$(git status --porcelain | wc -l)" -ne "0" ]; then | ||
echo " 🔴 there are uncommitted changes, please commit them before running this check" | ||
exit 1 | ||
fi | ||
|
||
success=true | ||
|
||
if ! make generate-json-schema; then | ||
echo "Generating json schema failed" | ||
success=false | ||
fi | ||
|
||
if ! git diff-index --quiet HEAD --; then | ||
git diff-index HEAD -- | ||
git --no-pager diff | ||
echo "JSON schema drift detected!" | ||
success=false | ||
exit 1 | ||
fi | ||
|
||
if ! $success; then | ||
if [ "$(git status --porcelain | wc -l)" -ne "0" ]; then | ||
echo " 🔴 there are uncommitted changes, please commit them before running this check" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Add to OSS board | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
- reopened | ||
- transferred | ||
- labeled | ||
|
||
jobs: | ||
|
||
run: | ||
uses: "anchore/workflows/.github/workflows/oss-project-board-add.yaml@main" | ||
secrets: | ||
token: ${{ secrets.OSS_PROJECT_GH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: PR to update CPE dictionary index | ||
on: | ||
schedule: | ||
- cron: "0 1 * * 1" # every monday at 1 AM | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
GO_VERSION: "1.20.x" | ||
GO_STABLE_VERSION: true | ||
|
||
jobs: | ||
upgrade-cpe-dictionary-index: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'anchore/syft' # only run for main repo | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
stable: ${{ env.GO_STABLE_VERSION }} | ||
|
||
- run: | | ||
make generate-cpe-dictionary-index | ||
- uses: tibdex/github-app-token@v1 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.TOKEN_APP_ID }} | ||
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} | ||
|
||
- uses: peter-evans/create-pull-request@v5 | ||
with: | ||
signoff: true | ||
delete-branch: true | ||
branch: auto/latest-cpe-dictionary-index | ||
labels: dependencies | ||
commit-message: "chore(deps): update CPE dictionary index" | ||
title: "chore(deps): update CPE dictionary index" | ||
body: | | ||
Update CPE dictionary index based on the latest available CPE dictionary | ||
token: ${{ steps.generate-token.outputs.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
GO_VERSION: "1.19.x" | ||
GO_VERSION: "1.20.x" | ||
GO_STABLE_VERSION: true | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.