Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1cf94b38d | ||
|
|
1f0af15932 | ||
|
|
4acab3e3c6 | ||
|
|
11eb12cc6e | ||
|
|
c94da17686 | ||
|
|
4903484aa4 | ||
|
|
db405d24e9 | ||
|
|
fff6e49350 | ||
|
|
ac1addca14 | ||
|
|
01a863deed | ||
|
|
769462a028 | ||
|
|
ea467474d0 | ||
|
|
373dbfce2e | ||
|
|
d75172dd62 | ||
|
|
b825dec8be | ||
|
|
f6b27fe51c |
No files matched your search
+4
-29
@@ -6,8 +6,7 @@ on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
schedule:
|
||||
# Saturday 05:00 UTC: 06:00 in Paris in winter, 07:00 in summer (Gitea runs cron in UTC).
|
||||
- cron: "0 5 * * 6"
|
||||
- cron: "0 6 * * 1"
|
||||
|
||||
jobs:
|
||||
build-and-scan:
|
||||
@@ -19,15 +18,6 @@ jobs:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
- name: Get shared actions
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
repository: labeex/cicdeex
|
||||
ref: 1.0.0
|
||||
token: ${{ secrets.CICDEEX_TOKEN }}
|
||||
path: .cicdeex
|
||||
persist-credentials: false
|
||||
|
||||
- name: Scan for secrets
|
||||
run: |
|
||||
# docker cp, not a build COPY: a repo's own .dockerignore (e.g. one that
|
||||
@@ -64,7 +54,7 @@ jobs:
|
||||
docker run --rm \
|
||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||
--add-host=dockerhost:host-gateway \
|
||||
aquasec/trivy:0.76.2 image --exit-code 1 --severity CRITICAL socat-proxy:ci
|
||||
aquasec/trivy:0.74.0 image --exit-code 1 --severity CRITICAL socat-proxy:ci
|
||||
|
||||
- name: Handle CRITICAL findings
|
||||
if: steps.trivy_critical.outcome == 'failure'
|
||||
@@ -82,7 +72,7 @@ jobs:
|
||||
if docker run --rm \
|
||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||
--add-host=dockerhost:host-gateway \
|
||||
aquasec/trivy:0.76.2 image --exit-code 1 --severity CRITICAL socat-proxy:remediated; then
|
||||
aquasec/trivy:0.74.0 image --exit-code 1 --severity CRITICAL socat-proxy:remediated; then
|
||||
echo "apk upgrade clears the CRITICAL finding(s) — opening a PR for review."
|
||||
|
||||
BRANCH="auto/cve-fix-$(date +%Y%m%d)-$(echo "${{ github.sha }}" | cut -c1-7)"
|
||||
@@ -110,22 +100,7 @@ jobs:
|
||||
docker run --rm \
|
||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||
--add-host=dockerhost:host-gateway \
|
||||
aquasec/trivy:0.76.2 image --exit-code 0 --severity HIGH socat-proxy:ci
|
||||
|
||||
# Pilot: the shared publish action in dry-run, before the real publish,
|
||||
# to compare its output with what the step below really does.
|
||||
- name: Publish dry-run (cicdeex pilot)
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
continue-on-error: true
|
||||
uses: ./.cicdeex/publish
|
||||
with:
|
||||
image: socat-proxy:ci
|
||||
paths: '^(Dockerfile|entrypoint\.sh|VERSION)$'
|
||||
push-token: ${{ secrets.CI_PUSH_TOKEN }}
|
||||
registry-token: ${{ secrets.REGISTRY_TOKEN }}
|
||||
github-mirror: "true"
|
||||
github-token: ${{ secrets.GH_TOKEN }}
|
||||
dry-run: "true"
|
||||
aquasec/trivy:0.74.0 image --exit-code 0 --severity HIGH socat-proxy:ci
|
||||
|
||||
- name: Publish tagged image
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM alpine:3.24.4@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf AS base
|
||||
FROM alpine:3.24.1 AS base
|
||||
|
||||
RUN apk add --no-cache socat netcat-openbsd su-exec \
|
||||
&& rm -rf /var/cache/apk/* /tmp/*
|
||||
|
||||
+22
-1
@@ -1,4 +1,25 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>labeex/renovateex"]
|
||||
"extends": ["config:recommended"],
|
||||
"timezone": "Europe/Paris",
|
||||
"labels": ["bot"],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchManagers": ["dockerfile"],
|
||||
"matchUpdateTypes": ["patch"],
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"matchUpdateTypes": ["major"],
|
||||
"addLabels": ["major"]
|
||||
},
|
||||
{
|
||||
"matchUpdateTypes": ["minor"],
|
||||
"addLabels": ["minor"]
|
||||
}
|
||||
],
|
||||
"vulnerabilityAlerts": {
|
||||
"enabled": true,
|
||||
"addLabels": ["bug"]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user