Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
417fe18fe8 | ||
|
|
9d86f1d6f0 | ||
|
|
79495d2a30 | ||
|
|
3503227234 | ||
|
|
49c1ac8239 | ||
|
|
b3dc6e33d1 | ||
|
|
2610857d48 | ||
|
|
ec64cc6508 | ||
|
|
bedba358ae | ||
|
|
38d5901112 | ||
|
|
1037c2114b |
No files matched your search
+29
-4
@@ -6,7 +6,8 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 6 * * 1"
|
# Saturday 05:00 UTC: 06:00 in Paris in winter, 07:00 in summer (Gitea runs cron in UTC).
|
||||||
|
- cron: "0 5 * * 6"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-scan:
|
build-and-scan:
|
||||||
@@ -18,6 +19,15 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
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
|
- name: Scan for secrets
|
||||||
run: |
|
run: |
|
||||||
# docker cp, not a build COPY: a repo's own .dockerignore (e.g. one that
|
# docker cp, not a build COPY: a repo's own .dockerignore (e.g. one that
|
||||||
@@ -54,7 +64,7 @@ jobs:
|
|||||||
docker run --rm \
|
docker run --rm \
|
||||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||||
--add-host=dockerhost:host-gateway \
|
--add-host=dockerhost:host-gateway \
|
||||||
aquasec/trivy:0.74.0 image --exit-code 1 --severity CRITICAL socat-proxy:ci
|
aquasec/trivy:0.76.2 image --exit-code 1 --severity CRITICAL socat-proxy:ci
|
||||||
|
|
||||||
- name: Handle CRITICAL findings
|
- name: Handle CRITICAL findings
|
||||||
if: steps.trivy_critical.outcome == 'failure'
|
if: steps.trivy_critical.outcome == 'failure'
|
||||||
@@ -72,7 +82,7 @@ jobs:
|
|||||||
if docker run --rm \
|
if docker run --rm \
|
||||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||||
--add-host=dockerhost:host-gateway \
|
--add-host=dockerhost:host-gateway \
|
||||||
aquasec/trivy:0.74.0 image --exit-code 1 --severity CRITICAL socat-proxy:remediated; then
|
aquasec/trivy:0.76.2 image --exit-code 1 --severity CRITICAL socat-proxy:remediated; then
|
||||||
echo "apk upgrade clears the CRITICAL finding(s) — opening a PR for review."
|
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)"
|
BRANCH="auto/cve-fix-$(date +%Y%m%d)-$(echo "${{ github.sha }}" | cut -c1-7)"
|
||||||
@@ -100,7 +110,22 @@ jobs:
|
|||||||
docker run --rm \
|
docker run --rm \
|
||||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||||
--add-host=dockerhost:host-gateway \
|
--add-host=dockerhost:host-gateway \
|
||||||
aquasec/trivy:0.74.0 image --exit-code 0 --severity HIGH socat-proxy:ci
|
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"
|
||||||
|
|
||||||
- name: Publish tagged image
|
- name: Publish tagged image
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.24.3 AS base
|
FROM alpine:3.24.4@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf AS base
|
||||||
|
|
||||||
RUN apk add --no-cache socat netcat-openbsd su-exec \
|
RUN apk add --no-cache socat netcat-openbsd su-exec \
|
||||||
&& rm -rf /var/cache/apk/* /tmp/*
|
&& rm -rf /var/cache/apk/* /tmp/*
|
||||||
|
|||||||
+1
-22
@@ -1,25 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": ["config:recommended"],
|
"extends": ["local>labeex/renovateex"]
|
||||||
"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