Skip to content

Commit

Permalink
Tag database with v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ribbybibby committed Nov 29, 2022
1 parent 065cc18 commit bf2f916
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
working-directory: /home/runner/.cache/tally/db
run: |
zstd -k -19 tally.db
oras push ${{ env.REGISTRY }}/${{ github.repository }}/db:latest metadata.json:application/vnd.jetstack.tally.metadata.layer.v1 tally.db.zst:application/vnd.jetstack.tally.db.layer.v1+zstd
oras push ${{ env.REGISTRY }}/${{ github.repository }}/db:v1 metadata.json:application/vnd.jetstack.tally.metadata.layer.v1 tally.db.zst:application/vnd.jetstack.tally.db.layer.v1+zstd
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ The supported SBOM formats are:
## Database

When `tally` runs for the first time, it pulls down a database from
`ghcr.io/jetstack/tally/db:latest` and caches it locally, typically in
`ghcr.io/jetstack/tally/db:v1` and caches it locally, typically in
`~/.cache/tally/db`.

It uses the data in this database to associate Scorecard scores with packages.
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,6 @@ func init() {
rootCmd.Flags().StringVarP(&ro.Output, "output", "o", "short", fmt.Sprintf("output format, options=%s", output.Formats))
rootCmd.Flags().BoolVarP(&ro.GenerateScores, "generate", "g", false, "generate scores for repositories that aren't in the database. The GITHUB_TOKEN environment variable must be set.")
rootCmd.Flags().BoolVar(&ro.CheckForUpdate, "check-for-update", true, "check for database update")
rootCmd.Flags().StringVar(&ro.DBRef, "db-reference", "ghcr.io/jetstack/tally/db:latest", "image reference to download database from")
rootCmd.Flags().StringVar(&ro.DBRef, "db-reference", "ghcr.io/jetstack/tally/db:v1", "image reference to download database from")
rootCmd.Flags().Var(&ro.FailOn, "fail-on", "fail if a package is found with a score <= to the given value")
}

0 comments on commit bf2f916

Please sign in to comment.