Compare commits
1 Commits
0.0.9
..
0946c898b6
| Author | SHA1 | Date | |
|---|---|---|---|
|
0946c898b6
|
@@ -10,15 +10,15 @@ jobs:
|
|||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Increment tag
|
- name: Increment tag
|
||||||
id: tag
|
id: tag
|
||||||
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@b8806ee0141a44be30e8734dff15001361be100c # 0.1.35
|
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@41b7e04221df8a033bec841d40a097b76e5f67ff # 0.1.29
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
- name: Push tag
|
- name: Push tag
|
||||||
uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@0841ccc70fc2c1526123785f3b0a510a6ba4bdfc # 0.2.7
|
uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@3925c92fc33f3d2bc87d28d21ab691b7e6dd6cdf # 0.2.1
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.tag.outputs.new-tag }}
|
tag: ${{ steps.tag.outputs.new-tag }}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- linux_${{ matrix.arch }}
|
- linux_${{ matrix.arch }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- name: Setup Trivy
|
- name: Setup Trivy
|
||||||
uses: ./setup-trivy
|
uses: ./setup-trivy
|
||||||
- name: Run Trivy
|
- name: Run Trivy
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- uses: ./setup-trivy
|
- uses: ./setup-trivy
|
||||||
- name: Setup DB
|
- name: Setup DB
|
||||||
id: setup-db
|
id: setup-db
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- id: giff
|
- id: giff
|
||||||
uses: ./get-images-from-files
|
uses: ./get-images-from-files
|
||||||
with:
|
with:
|
||||||
@@ -88,7 +88,7 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||||
- name: Merge SARIF Files
|
- name: Merge SARIF Files
|
||||||
uses: ./merge-sarif-files
|
uses: ./merge-sarif-files
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -8,16 +8,16 @@ jobs:
|
|||||||
name: Prerelease
|
name: Prerelease
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Increment tag
|
- name: Increment tag
|
||||||
id: tag
|
id: tag
|
||||||
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@b8806ee0141a44be30e8734dff15001361be100c # 0.1.35
|
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@41b7e04221df8a033bec841d40a097b76e5f67ff # 0.1.29
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
- name: Push tag
|
- name: Push tag
|
||||||
uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@0841ccc70fc2c1526123785f3b0a510a6ba4bdfc # 0.2.7
|
uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@3925c92fc33f3d2bc87d28d21ab691b7e6dd6cdf # 0.2.1
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.tag.outputs.new-tag }}
|
tag: ${{ steps.tag.outputs.new-tag }}
|
||||||
|
|||||||
+10
-2
@@ -1,5 +1,13 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": ["local>t.behrendt/renovate-configs:action"],
|
"extends": [
|
||||||
"enabledManagers": "github-actions"
|
"local>t.behrendt/renovate-configs:common",
|
||||||
|
"local>t.behrendt/renovate-configs:action"
|
||||||
|
],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchManagers": ["dockerfile", "kubernetes", "helmfile", "helm-values"],
|
||||||
|
"ignorePaths": ["get-images-from-files/test*"]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+23
-2
@@ -10,6 +10,10 @@ inputs:
|
|||||||
description: "Path to the Trivy cache directory (default: ${{runner.temp}}/trivy)"
|
description: "Path to the Trivy cache directory (default: ${{runner.temp}}/trivy)"
|
||||||
required: false
|
required: false
|
||||||
default: "${{ runner.temp }}/trivy"
|
default: "${{ runner.temp }}/trivy"
|
||||||
|
trivy-version:
|
||||||
|
description: "Trivy docker image version to use (full image reference including digest is recommended)"
|
||||||
|
required: false
|
||||||
|
default: "ghcr.io/aquasecurity/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
cache-dir:
|
cache-dir:
|
||||||
@@ -24,7 +28,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
echo "current-date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
|
echo "current-date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
|
||||||
- id: restore-db
|
- id: restore-db
|
||||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
|
||||||
with:
|
with:
|
||||||
path: ${{ inputs.cache-dir }}
|
path: ${{ inputs.cache-dir }}
|
||||||
key: trivy-db-${{ steps.current-date.outputs.current-date }}
|
key: trivy-db-${{ steps.current-date.outputs.current-date }}
|
||||||
@@ -32,4 +36,21 @@ runs:
|
|||||||
trivy-db-${{ steps.current-date.outputs.current-date }}
|
trivy-db-${{ steps.current-date.outputs.current-date }}
|
||||||
- if: steps.restore-db.outputs.cache-hit != 'true'
|
- if: steps.restore-db.outputs.cache-hit != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: trivy fs --download-db-only --cache-dir "${{ inputs.cache-dir }}"
|
run: |
|
||||||
|
docker run --rm \
|
||||||
|
--name trivy-db-download \
|
||||||
|
--user "$(id -u):$(id -g)" \
|
||||||
|
--read-only \
|
||||||
|
--env-file /dev/null \
|
||||||
|
--cap-drop ALL \
|
||||||
|
--pids-limit 64 \
|
||||||
|
--memory=512m \
|
||||||
|
--memory-swap=512m \
|
||||||
|
--cpus=1 \
|
||||||
|
--ipc private \
|
||||||
|
--cgroupns private \
|
||||||
|
--security-opt no-new-privileges \
|
||||||
|
--security-opt apparmor=docker-default \
|
||||||
|
--tmpfs /tmp:rw,noexec,nosuid,nodev,size=1g \
|
||||||
|
--mount type=bind,src=${{ inputs.cache-dir }},dst=/cache \
|
||||||
|
${{ inputs.trivy-version }} fs --download-db-only --cache-dir /cache
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ runs:
|
|||||||
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
|
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
|
||||||
- name: Cache Trivy binary
|
- name: Cache Trivy binary
|
||||||
id: cache-trivy
|
id: cache-trivy
|
||||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
|
||||||
with:
|
with:
|
||||||
path: /usr/local/bin/trivy
|
path: /usr/local/bin/trivy
|
||||||
key: trivy-${{ steps.version.outputs.version }}-${{ steps.arch.outputs.arch }}
|
key: trivy-${{ steps.version.outputs.version }}-${{ steps.arch.outputs.arch }}
|
||||||
|
|||||||
Reference in New Issue
Block a user