Skip to content

Commit 8d42fee

Browse files
chore: Rename call-imds.yaml
Signed-off-by: Anurag Rajawat <[email protected]>
1 parent de81cda commit 8d42fee

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Call IMDS Endpoint
1+
name: Trigger outbound calls by infra process
22

33
on:
44
workflow_dispatch: {}
55

66
jobs:
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

@@ -17,7 +17,7 @@ jobs:
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
@@ -26,5 +26,7 @@ jobs:
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

0 commit comments

Comments
 (0)