53 lines
3.2 KiB
Plaintext
53 lines
3.2 KiB
Plaintext
felhom-gates-runner(version:v0.6.1) received task 2429 of job watch, be triggered by event: workflow_dispatch
|
|
workflow prepared
|
|
evaluating expression 'success()'
|
|
expression 'success()' evaluated to 'true'
|
|
evaluating expression ''
|
|
expression '' evaluated to 'true'
|
|
⭐ Run Main Fetch main (latest, for the memory) and the two sibling repos
|
|
Wrote command \n\necho "WATCH_STARTED_AT=$(date +%s)" >> "$GITHUB_ENV"\nbase=http://gitea.gitea-system.svc.cluster.local:3000/admin\ngit init -q . && git remote add origin $base/felhom.eu.git\ngit fetch -q --depth 1 origin main && git checkout -q -B main FETCH_HEAD\necho "felhom.eu main at $(git rev-parse --short=12 HEAD)"\nfor r in felhom-controller app-catalog-felhom.eu; do\n git init -q ../$r && git -C ../$r remote add origin $base/$r.git\n git -C ../$r fetch -q --depth 1 origin main && git -C ../$r checkout -q FETCH_HEAD\n echo "$r at $(git -C ../$r rev-parse --short=12 HEAD)"\ndone\n\n\n to 'workflow/0.sh'
|
|
::group::Run echo "WATCH_STARTED_AT=$(date +%s)" >> "$GITHUB_ENV"
|
|
echo "WATCH_STARTED_AT=$(date +%s)" >> "$GITHUB_ENV"
|
|
base=http://gitea.gitea-system.svc.cluster.local:3000/admin
|
|
git init -q . && git remote add origin $base/felhom.eu.git
|
|
git fetch -q --depth 1 origin main && git checkout -q -B main FETCH_HEAD
|
|
echo "felhom.eu main at $(git rev-parse --short=12 HEAD)"
|
|
for r in felhom-controller app-catalog-felhom.eu; do
|
|
git init -q ../$r && git -C ../$r remote add origin $base/$r.git
|
|
git -C ../$r fetch -q --depth 1 origin main && git -C ../$r checkout -q FETCH_HEAD
|
|
echo "$r at $(git -C ../$r rev-parse --short=12 HEAD)"
|
|
done
|
|
shell: bash --noprofile --norc -e -o pipefail {0}
|
|
::endgroup::
|
|
felhom.eu main at 6ee23a3b8f90
|
|
felhom-controller at e01eb64b2591
|
|
app-catalog-felhom.eu at f61800aae945
|
|
::group::Run set -u
|
|
set -u
|
|
mkdir -p documentation/security-watch
|
|
mode="${MODE:-run}"
|
|
[ "${GITHUB_EVENT_NAME:-}" = "schedule" ] && mode=run
|
|
echo "mode: $mode"
|
|
case "$mode" in
|
|
test-mail) python3 scripts/security_watch.py --test-mail; exit $? ;;
|
|
dry) extra="--no-mail" ; state=/tmp/state-dry.json
|
|
cp documentation/security-watch/state.json "$state" 2>/dev/null || true ;;
|
|
seed) extra="--seed" ; state=documentation/security-watch/state.json ;;
|
|
run) extra="" ; state=documentation/security-watch/state.json ;;
|
|
*) echo "unknown mode $mode"; exit 2 ;;
|
|
esac
|
|
python3 scripts/security_watch.py --state="$state" --catalog=../app-catalog-felhom.eu \
|
|
--controller=../felhom-controller --json=/tmp/watch-results.json $extra
|
|
shell: bash --noprofile --norc -e -o pipefail {0}
|
|
env:
|
|
RESEND_API_KEY: ***
|
|
GH_ADVISORY_TOKEN:
|
|
MODE: test-mail
|
|
::endgroup::
|
|
mode: test-mail
|
|
/root/.cache/act/1d095cc34caf5db5/hostexecutor/scripts/security_watch.py:715: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
|
|
today = datetime.date.fromisoformat(opts["today"]) if "today" in opts else datetime.datetime.utcnow().date()
|
|
TEST-MAIL RESEND-ACCEPTED id=01a17a5d-b46f-7a8e-b0eb-4e89c01c7354 subject=[Felhom security] TEST — not a real advisory: TEST-program — 1 new advisory
|
|
Cleaning up container for job watch
|
|
🏁 Job succeeded
|