Skip to content

Commit

Permalink
Merge branch 'main' into cassandra-medusa
Browse files Browse the repository at this point in the history
  • Loading branch information
mritunjaysharma394 authored Jan 25, 2024
2 parents 06877f0 + 73cf043 commit 0866a64
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .github/chainguard/digestabot.sts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
issuer: https://token.actions.githubusercontent.com
subject: repo:chainguard-images/images:ref:refs/heads/main
claim_pattern:
job_workflow_ref: chainguard-images/images/.github/workflows/digestabot.yaml@refs/heads/main

permissions:
contents: write
pull_requests: write
workflows: write
22 changes: 14 additions & 8 deletions .github/workflows/digestabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ jobs:
image-update:
name: Image digest update
runs-on: ubuntu-latest
if: github.repository == 'chainguard-images/images'

permissions:
contents: write
pull-requests: write
id-token: write
contents: read # To clone the repo
id-token: write # To gitsign and federate

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: chainguard-dev/actions/digesta-bot@main
with:
token: ${{ secrets.DIGEST_BOT_CHAINGUARD_IMAGES_PAT }}
signoff: true
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: chainguard-dev/actions/octo-sts@main
id: octo-sts
with:
scope: ${{ github.repository }}
identity: digestabot

- uses: chainguard-dev/actions/digesta-bot@main
with:
token: ${{ steps.octo-sts.outputs.token }}
12 changes: 12 additions & 0 deletions BEST_PRACTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,15 @@ Other tests that should be considered:
* Tests for any configuration options provided e.g. setting a password
* Mounting data or configuration e.g. running nginx with a HTML directory
* Connecting via another container

## Vulnerability scanning

Use Grype to find vulnerabilities in Chainguard images. Note that we rely on a tweaked configuration when monitoring vulnerabilities. Add the following content to the file `~/.grype.yaml` to capture more accurate findings:

```
external-sources:
enable: true
maven:
search-upstream-by-sha1: true
base-url: https://search.maven.org/solrsearch/select
```

0 comments on commit 0866a64

Please sign in to comment.