File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- name : Call IMDS Endpoint
1+ name : Trigger outbound calls by infra process
22
33on :
44 workflow_dispatch : {}
55
66jobs :
7- call-endpoint :
7+ outbound-call :
88 runs-on : ubuntu-latest
99 steps :
10- - uses : step-security/harden-runner@rc
10+ - uses : step-security/harden-runner@int
1111 with :
1212 egress-policy : audit
1313
1717 - name : Schedule heartbeat cron
1818 run : |
1919 # Create a cron file; user 'runner' exists on ubuntu-latest
20- echo "* * * * * runner curl -fsS -X POST https ://example.com/heartbeat >/dev/null 2>&1" \
20+ echo "* * * * * runner curl -fsS -X POST http ://example.com/heartbeat >/dev/null 2>&1" \
2121 | sudo tee /etc/cron.d/heartbeat-job
2222 sudo chmod 644 /etc/cron.d/heartbeat-job
2323
2626
2727 - name : Do other work
2828 run : |
29+ echo "Cron daemon PID: $(pgrep cron)"
30+ echo "Cron daemon PPID: $(ps -o ppid= -p $(pgrep cron))"
2931 echo "Cron is now firing every minute in the background..."
3032 sleep 90 # keep the job alive long enough to see it run
You can’t perform that action at this time.
0 commit comments