Compare commits
1 Commits
0.0.1
..
0946c898b6
| Author | SHA1 | Date | |
|---|---|---|---|
|
0946c898b6
|
@@ -4,17 +4,6 @@
|
|||||||
"local>t.behrendt/renovate-configs:common",
|
"local>t.behrendt/renovate-configs:common",
|
||||||
"local>t.behrendt/renovate-configs:action"
|
"local>t.behrendt/renovate-configs:action"
|
||||||
],
|
],
|
||||||
"customManagers": [
|
|
||||||
{
|
|
||||||
"customType": "regex",
|
|
||||||
"description": "Update Trivy docker image",
|
|
||||||
"managerFilePatterns": ["/(^|/)setup-db/action\\.ya?ml$/"],
|
|
||||||
"datasourceTemplate": "docker",
|
|
||||||
"matchStrings": [
|
|
||||||
"default:\\s*\"(?<depName>ghcr\\.io/aquasecurity/trivy):(?<currentValue>[\\d\\.]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\""
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchManagers": ["dockerfile", "kubernetes", "helmfile", "helm-values"],
|
"matchManagers": ["dockerfile", "kubernetes", "helmfile", "helm-values"],
|
||||||
|
|||||||
+3
-8
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
A reusable Gitea Action that sets up the Trivy vulnerability database, restoring from cache if available.
|
A reusable Gitea Action that sets up the Trivy vulnerability database, restoring from cache if available.
|
||||||
|
|
||||||
The action runs Trivy inside **Docker** with a restricted container configuration so the Trivy runtime is isolated from the host while the database is downloaded into your cache directory.
|
**Note:** This action only sets up the database. Trivy itself must be installed separately (e.g., using the `setup-trivy` action).
|
||||||
|
|
||||||
**Note:** This action only prepares the vulnerability database. If you run Trivy on the runner host for scans (for example `trivy fs .`), install Trivy separately (e.g. with a `setup-trivy` action or your own step).
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -39,8 +37,5 @@ jobs:
|
|||||||
## Inputs
|
## Inputs
|
||||||
|
|
||||||
| Input | Description | Required | Default |
|
| Input | Description | Required | Default |
|
||||||
| ---------------- | --------------------------------------------------------------------------- | -------- | ------- |
|
| ----------- | --------------------------------- | -------- | ---------------- |
|
||||||
| `cache-dir` | Path to the Trivy cache directory | No | `${{ runner.temp }}/trivy` |
|
| `cache-dir` | Path to the Trivy cache directory | No | `~/.cache/trivy` |
|
||||||
| `trivy-version` | Docker image reference for Trivy (digest pin recommended) | No | Pinned `ghcr.io/aquasecurity/trivy` image in `action.yaml` |
|
|
||||||
|
|
||||||
**`trivy-version` is optional.** If you omit it, the action uses the default image (version and digest) from `action.yaml`. Set it only when you need a different Trivy image or your own digest pin.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user