tags: liquibase github

Refers: How to Set Up GitHub Actions Self-Hosted Runner on RHEL

Pre-requisite:

#
# update package metadata:
#
[root@rocky ~]# dnf upgrade --refresh --assumeyes

#
# install dependencies required by the GitHub Action runner:
#
[root@rocky ~]# dnf install --assumeyes curl tar jq libicu

Download and install the runner:

root@rocky ~]# useradd --create-home --shell /bin/bash github-runner

[root@rocky ~]# grep github-runner /etc/group /etc/passwd
/etc/group:github-runner:x:1002:
/etc/passwd:github-runner:x:1002:1002::/home/github-runner:/bin/bash
[root@rocky ~]# id -a github-runner 
uid=1002(github-runner) gid=1002(github-runner) groups=1002(github-runner)

[root@rocky ~]# su - github-runner
github-runner@rocky ~]$ whoami
github-runner
[github-runner@rocky ~]$ pwd
/home/github-runner

github-runner@rocky ~]$ curl --location --remote-name https://github.com/actions/runner/releases/download/v2.336.0/actions-runner-linux-x64-2.336.0.tar.gz

[github-runner@rocky ~]$ ls -l actions-runner-linux-x64-2.336.0.tar.gz 
-rw-r--r--. 1 github-runner github-runner 226035903 Aug  9 19:58 actions-runner-linux-x64-2.336.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  215M  100  215M    0     0   196M      0  0:00:01  0:00:01 --:--:--  230M

[github-runner@rocky ~]$ tar zxvf actions-runner-linux-x64-2.336.0.tar.gz 
::
::

[github-runner@rocky ~]$ ls -l
-rw-r--r--.  1 github-runner github-runner 226035903 Aug  9 19:58 actions-runner-linux-x64-2.336.0.tar.gz
drwxr-xr-x. 17 github-runner github-runner     12288 Jul 20 17:43 bin
-rwxr-xr-x.  1 github-runner github-runner      2458 Jul 20 17:42 config.sh
-rwxr-xr-x.  1 github-runner github-runner       646 Jul 20 17:42 env.sh
drwxr-xr-x.  6 github-runner github-runner        76 Jul 20 17:43 externals
-rw-r--r--.  1 github-runner github-runner      1824 Jul 20 17:42 run-helper.cmd.template
-rwxr-xr-x.  1 github-runner github-runner      2866 Jul 20 17:42 run-helper.sh.template
-rwxr-xr-x.  1 github-runner github-runner      2885 Jul 20 17:42 run.sh
-rwxr-xr-x.  1 github-runner github-runner       751 Jul 20 17:42 safe_sleep.sh

Configure the runner:

[github-runner@rocky ~]$ ./config.sh --url https://github.com/kmaau/liquibase --token ACE2JUEHJROFDLKI3KTIMLDKPDTOG
--------------------------------------------------------------------------------
|        ____ _ _   _   _       _          _        _   _                      |
|       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
|      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
|      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
|       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
|                                                                              |
|                       [[blue:Self-hosted runner registration]]                        |
|                                                                              |
--------------------------------------------------------------------------------
# Authentication
[[green:√]] Connected to GitHub
# Runner Registration
Enter the name of the runner group to add this runner to: [press Enter for Default] [[yellow:[Enter]]]
Enter the name of runner: [press Enter for rocky] [[yellow:[[Enter]]]
This runner will have the following labels: 'self-hosted', 'Linux', 'X64' 
Enter any additional labels (ex. label-1,label-2): [press Enter to skip] [[yellow:[Enter]]]
[[green:√]] Runner successfully added
# Runner settings
Enter name of work folder: [press Enter for _work] [[yellow:[[Enter]]]
[[green:√]] Settings Saved.

[github-runner@rocky ~]$ ls -l
-rw-r--r--.  1 github-runner github-runner 226035903 Aug  9 19:58 actions-runner-linux-x64-2.336.0.tar.gz
drwxr-xr-x. 17 github-runner github-runner     12288 Jul 20 17:43 bin
-rwxr-xr-x.  1 github-runner github-runner      2458 Jul 20 17:42 config.sh
drwxr-xr-x.  2 github-runner github-runner        44 Aug  9 20:14 _diag
-rwxr-xr-x.  1 github-runner github-runner       646 Jul 20 17:42 env.sh
drwxr-xr-x.  6 github-runner github-runner        76 Jul 20 17:43 externals
-rw-r--r--.  1 github-runner github-runner      1824 Jul 20 17:42 run-helper.cmd.template
-rwxr-xr-x.  1 github-runner github-runner      2866 Jul 20 17:42 run-helper.sh.template
-rwxr-xr-x.  1 github-runner github-runner      2885 Jul 20 17:42 run.sh
-rwxr-xr-x.  1 github-runner github-runner       751 Jul 20 17:42 safe_sleep.sh
-rwxr-xr-x.  1 github-runner github-runner      5208 Aug  9 20:15 svc.sh

[github-runner@rocky ~]$ exit
logout

Install runner as a systemd Service:

[root@rocky ~]# cd /home/github-runner
[root@rocky github-runner]# ls -l svc.sh 
-rwxr-xr-x. 1 github-runner github-runner 5208 Aug  9 20:15 svc.sh

[root@rocky github-runner]# ./svc.sh install github-runner
Creating launch runner in /etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service
Run as user: github-runner
Run as uid: 1002
gid: 1002
/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service not reset as customized by admin to unconfined_u:object_r:home_bin_t:s0
Created symlink /etc/systemd/system/multi-user.target.wants/actions.runner.kmaau-liquibase.rocky.service → 
/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service.

[root@rocky github-runner]# systemctl enable --now actions.runner.kmaau-liquibase.rocky.service 

[root@rocky github-runner]# systemctl status actions.runner.kmaau-liquibase.rocky.service 
× actions.runner.kmaau-liquibase.rocky.service - GitHub Actions Runner (kmaau-liquibase.rocky)
     Loaded: loaded (/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service; enabled; preset: disabled)
     Active: [[red:failed]] (Result: exit-code) since Sun 2026-08-09 20:53:16 UTC; 28s ago
   Duration: 14ms
    Process: 183195 ExecStart=/home/github-runner/runsvc.sh [[red:(code=exited, status=203/EXEC)]]
   Main PID: 183195 (code=exited, status=203/EXEC)
        CPU: 1ms
Aug 09 20:53:16 rocky systemd[1]: Started GitHub Actions Runner (kmaau-liquibase.rocky).
Aug 09 20:53:16 rocky systemd[183195]: actions.runner.kmaau-liquibase.rocky.service: Failed to locate executable /home/github-runner/runsvc.sh: Permission denied
Aug 09 20:53:16 rocky systemd[183195]: [[red:actions.runner.kmaau-liquibase.rocky.service: Failed at step EXEC spawning /home/github-runner/runsvc.sh: Permission denied]]
Aug 09 20:53:16 rocky systemd[1]: actions.runner.kmaau-liquibase.rocky.service: Main process exited, code=exited, status=203/EXEC
Aug 09 20:53:16 rocky systemd[1]: [[yellow:actions.runner.kmaau-liquibase.rocky.service: Failed with result 'exit-code'.]]

[root@rocky github-runner]# journalctl --lines=100
::
::
::
Aug 09 20:33:58 rocky systemd[1]: Started GitHub Actions Runner (kmaau-liquibase.rocky).
Aug 09 20:33:58 rocky systemd[182544]: actions.runner.kmaau-liquibase.rocky.service: Failed to locate executable /home/github-runner/runsvc.sh: Permission denied
Aug 09 20:33:58 rocky systemd[182544]: actions.runner.kmaau-liquibase.rocky.service: Failed at step EXEC spawning /home/github-runner/runsvc.sh: Permission denied
Aug 09 20:33:58 rocky systemd[1]: actions.runner.kmaau-liquibase.rocky.service: Main process exited, code=exited, status=203/EXEC
Aug 09 20:33:58 rocky systemd[1]: actions.runner.kmaau-liquibase.rocky.service: Failed with result 'exit-code'.
Aug 09 20:33:58 rocky systemd[1]: Starting SETroubleshoot daemon for processing new SELinux denial logs...
Aug 09 20:33:59 rocky systemd[1]: Started SETroubleshoot daemon for processing new SELinux denial logs.
Aug 09 20:33:59 rocky systemd[1]: Started dbus-:1.1-org.fedoraproject.SetroubleshootPrivileged@1.service.
Aug 09 20:34:00 rocky setroubleshoot[182546]: [[red:SELinux is preventing /usr/lib/systemd/systemd from execute access on the file runsvc.sh. For complete SELinux messages run: seal>]]
Aug 09 20:34:00 rocky setroubleshoot[182546]: SELinux is preventing /usr/lib/systemd/systemd from execute access on the file runsvc.sh.
                                              *****  Plugin catchall (100. confidence) suggests   **************************
                                              If you believe that systemd should be allowed execute access on the runsvc.sh file by default.
                                              Then you should report this as a bug.
                                              You can generate a local policy module to allow this access.
                                              Do
                                              allow this access for now by executing:
                                              # ausearch -c '(unsvc.sh)' --raw | audit2allow -M my-unsvcsh
                                              # semodule -X 300 -i my-unsvcsh.pp
::
::
::

[root@rocky github-runner]# ls -lZ /home/github-runner/runsvc.sh 
-rwxr-xr-x. 1 github-runner github-runner unconfined_u:object_r:user_home_t:s0 532 Aug  9 20:31 /home/github-runner/runsvc.sh

[root@rocky github-runner]# ausearch -m avc -ts recent | audit2why
type=AVC msg=audit(1786308796.662:57864): avc:  denied  { execute } for  pid=183195 comm="(unsvc.sh)" name="runsvc.sh" dev="vda1" ino=84592417 
scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
        Was caused by:
                Missing type enforcement (TE) allow rule.
                You can use audit2allow to generate a loadable module to allow this access.

#
# turn off SELinux:
#
[root@rocky github-runner]# getenforce 
Enforcing

[root@rocky github-runner]# setenforce 0

[root@rocky github-runner]# systemctl start actions.runner.kmaau-liquibase.rocky.service

[root@rocky github-runner]# systemctl status actions.runner.kmaau-liquibase.rocky.service 
[[green:●]] actions.runner.kmaau-liquibase.rocky.service - GitHub Actions Runner (kmaau-liquibase.rocky)
     Loaded: loaded (/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service; enabled; preset: disabled)
     Active: [[green:active (running)]] since Sun 2026-08-09 21:06:17 UTC; 1s ago
   Main PID: 183631 (runsvc.sh)
      Tasks: 21 (limit: 4303)
     Memory: 83.0M (peak: 83.3M)
        CPU: 810ms
     CGroup: /system.slice/actions.runner.kmaau-liquibase.rocky.service
             ├─183631 /bin/bash /home/github-runner/runsvc.sh
             ├─183633 ./externals/node20/bin/node ./bin/RunnerService.js
             └─183641 /home/github-runner/bin/Runner.Listener run --startuptype service
Aug 09 21:06:17 rocky systemd[1]: Started GitHub Actions Runner (kmaau-liquibase.rocky).
Aug 09 21:06:17 rocky runsvc.sh[183631]: .path=/home/github-runner/.local/bin:/home/github-runner/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
Aug 09 21:06:17 rocky runsvc.sh[183633]: Starting Runner listener with startup type: service
Aug 09 21:06:17 rocky runsvc.sh[183633]: Started listener process, pid: 183641
Aug 09 21:06:17 rocky runsvc.sh[183633]: Started running service

[root@rocky github-runner]# journalctl --unit=actions.runner.* --follow
Aug 09 20:53:16 rocky systemd[1]: actions.runner.kmaau-liquibase.rocky.service: Main process exited, code=exited, status=203/EXEC
Aug 09 20:53:16 rocky systemd[1]: [[yellow:actions.runner.kmaau-liquibase.rocky.service: Failed with result 'exit-code'.]]
Aug 09 21:06:17 rocky systemd[1]: Started GitHub Actions Runner (kmaau-liquibase.rocky).
Aug 09 21:06:17 rocky runsvc.sh[183631]: .path=/home/github-runner/.local/bin:/home/github-runner/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
Aug 09 21:06:17 rocky runsvc.sh[183633]: Starting Runner listener with startup type: service
Aug 09 21:06:17 rocky runsvc.sh[183633]: Started listener process, pid: 183641
Aug 09 21:06:17 rocky runsvc.sh[183633]: Started running service
Aug 09 21:06:20 rocky runsvc.sh[183633]: √ Connected to GitHub
Aug 09 21:06:21 rocky runsvc.sh[183633]: Current runner version: '2.336.0'
Aug 09 21:06:21 rocky runsvc.sh[183633]: 2026-08-09 21:06:21Z: Listening for Jobs

[root@rocky github-runner]# ps aux | grep ^[g]ithub
github-+  183631  0.0  0.4   7144  3452 ?        Ss   21:06   0:00 /bin/bash /home/github-runner/runsvc.sh
github-+  183633  0.0  4.9 727860 39048 ?        Sl   21:06   0:00 ./externals/node20/bin/node ./bin/RunnerService.js
github-+  183641  1.1 11.3 273696788 88868 ?     Sl   21:06   0:01 /home/github-runner/bin/Runner.Listener run --startuptype service

[root@rocky github-runner]# lsof -P -i TCP:443
COMMAND      PID          USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
Runner.Li 183641 github-runner  142u  IPv6 592974      0t0  TCP rocky:58688->20.85.130.105:443 (ESTABLISHED)

If we want to reconfigure the runner:

[root@rocky github-runner]# systemctl status actions.runner.kmaau-liquibase.rocky.service 
[[green:●]] actions.runner.kmaau-liquibase.rocky.service - GitHub Actions Runner (kmaau-liquibase.rocky)
     Loaded: loaded (/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service; enabled; preset: disabled)
     Active: [[green:active (running)]] since Mon 2026-08-10 04:53:26 UTC; 9s ago
   Main PID: 198163 (runsvc.sh)
      Tasks: 22 (limit: 4303)
     Memory: 37.9M (peak: 38.1M)
        CPU: 1.045s
     CGroup: /system.slice/actions.runner.kmaau-liquibase.rocky.service
             ├─198163 /bin/bash /home/github-runner/runsvc.sh
             ├─198165 ./externals/node20/bin/node ./bin/RunnerService.js
             └─198173 /home/github-runner/bin/Runner.Listener run --startuptype service
Aug 10 04:53:26 rocky systemd[1]: Started GitHub Actions Runner (kmaau-liquibase.rocky).
Aug 10 04:53:26 rocky runsvc.sh[198163]: .path=/home/github-runner/.local/bin:/home/github-runner/bin:/usr/local/bin:/usr/bin:/usr/local>
Aug 10 04:53:26 rocky runsvc.sh[198165]: Starting Runner listener with startup type: service
Aug 10 04:53:26 rocky runsvc.sh[198165]: Started listener process, pid: 198173
Aug 10 04:53:26 rocky runsvc.sh[198165]: Started running service
Aug 10 04:53:29 rocky runsvc.sh[198165]: √ Connected to GitHub
Aug 10 04:53:29 rocky runsvc.sh[198165]: Current runner version: '2.336.0'
Aug 10 04:53:29 rocky runsvc.sh[198165]: 2026-08-10 04:53:29Z: Listening for Jobs

[root@rocky ~]# cd /home/github-runner
[root@rocky github-runner]# ls -l svc.sh 
-rwxr-xr-x. 1 github-runner github-runner 5208 Aug  9 20:15 svc.sh

[root@rocky github-runner]# ./svc.sh stop
/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service
[[red:○]] actions.runner.kmaau-liquibase.rocky.service - GitHub Actions Runner (kmaau-liquibase.rocky)
     Loaded: loaded (/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service; enabled; preset: disabled)
     Active: [[red:inactive (dead)]] since Mon 2026-08-10 04:55:02 UTC; 15ms ago
   Duration: 1min 36.104s
    Process: 198163 ExecStart=/home/github-runner/runsvc.sh (code=exited, status=0/SUCCESS)
   Main PID: 198163 (code=exited, status=0/SUCCESS)
        CPU: 1.226s
Aug 10 04:55:02 rocky runsvc.sh[198165]: Shutting down runner listener
Aug 10 04:55:02 rocky runsvc.sh[198165]: Sending SIGINT to runner listener to stop
Aug 10 04:55:02 rocky runsvc.sh[198165]: Sending SIGKILL to runner listener
Aug 10 04:55:02 rocky systemd[1]: Stopping GitHub Actions Runner (kmaau-liquibase.rocky)...
Aug 10 04:55:02 rocky runsvc.sh[198165]: Exiting...
Aug 10 04:55:02 rocky runsvc.sh[198165]: Runner listener exited with error code 0
Aug 10 04:55:02 rocky runsvc.sh[198165]: Runner listener exit with 0 return code, stop the service, no retry needed.
Aug 10 04:55:02 rocky systemd[1]: actions.runner.kmaau-liquibase.rocky.service: Deactivated successfully.
Aug 10 04:55:02 rocky systemd[1]: Stopped GitHub Actions Runner (kmaau-liquibase.rocky).
Aug 10 04:55:02 rocky systemd[1]: actions.runner.kmaau-liquibase.rocky.service: Consumed 1.226s CPU time, 38.1M memory peak.

[root@rocky github-runner]# ps aux | grep [R]unner.Listener
(.....nothing)

[root@rocky github-runner]# ./svc.sh uninstall
/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service
[[red:○]] actions.runner.kmaau-liquibase.rocky.service - GitHub Actions Runner (kmaau-liquibase.rocky)
     Loaded: loaded (/etc/systemd/system/actions.runner.kmaau-liquibase.rocky.service; enabled; preset: disabled)
     Active: [[red:inactive (dead)]] since Mon 2026-08-10 04:55:02 UTC; 1min 55s ago
   Duration: 1min 36.104s
    Process: 198163 ExecStart=/home/github-runner/runsvc.sh (code=exited, status=0/SUCCESS)
   Main PID: 198163 (code=exited, status=0/SUCCESS)
        CPU: 1.226s
Aug 10 04:55:02 rocky runsvc.sh[198165]: Shutting down runner listener
Aug 10 04:55:02 rocky runsvc.sh[198165]: Sending SIGINT to runner listener to stop
Aug 10 04:55:02 rocky runsvc.sh[198165]: Sending SIGKILL to runner listener
Aug 10 04:55:02 rocky systemd[1]: Stopping GitHub Actions Runner (kmaau-liquibase.rocky)...
Aug 10 04:55:02 rocky runsvc.sh[198165]: Exiting...
Aug 10 04:55:02 rocky runsvc.sh[198165]: Runner listener exited with error code 0
Aug 10 04:55:02 rocky runsvc.sh[198165]: Runner listener exit with 0 return code, stop the service, no retry needed.
Aug 10 04:55:02 rocky systemd[1]: actions.runner.kmaau-liquibase.rocky.service: Deactivated successfully.
Aug 10 04:55:02 rocky systemd[1]: Stopped GitHub Actions Runner (kmaau-liquibase.rocky).
Aug 10 04:55:02 rocky systemd[1]: actions.runner.kmaau-liquibase.rocky.service: Consumed 1.226s CPU time, 38.1M memory peak.
Removed "/etc/systemd/system/multi-user.target.wants/actions.runner.kmaau-liquibase.rocky.service".

[github-runner@rocky ~]$ ./config.sh remove --token ACE2JUHTUZF26UZSKZ2EY63KPFVHM
# Runner removal
[[green:√]] Runner removed successfully
[[green:√]] Removed .credentials
[[green:√]] Removed .runner

[github-runner@rocky ~]$ ./config.sh --url https://github.com/kmaau/liquibase \
                         [[yellow:--token ACE2JUDK3K3JG6GT6NDO4RTKPFVXA]]                \
                         [[yellow:--name "rocky-runner-01"]]                             \
                         [[yellow:--labels "rocky,self-hosted,x64"]]                     \
                         [[yellow:--work "_work"]]
--------------------------------------------------------------------------------
|        ____ _ _   _   _       _          _        _   _                      |
|       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
|      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
|      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
|       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
|                                                                              |
|                       [[blue:Self-hosted runner registration]]                        |
|                                                                              |
--------------------------------------------------------------------------------
# Authentication
[[green:√]] Connected to GitHub
# Runner Registration
Enter the name of the runner group to add this runner to: [press Enter for Default] 
[[green:√]] Runner successfully added
# Runner settings
[[green:√]] Settings Saved.

Test the runner in a workflow in liuibase repository:

root@rocky ~]# su - kmaau
Last login: Mon Aug 10 04:01:02 UTC 2026 on pts/0

[kmaau@rocky ~]$ ls -ld ${HOME}/liquibase
drwxr-xr-x. 5 kmaau kmaau 60 Aug  6 13:26 /home/kmaau/liquibase
[kmaau@rocky liquibase]$ git branch
  diff
* [[green:main]]

[kmaau@rocky ~]$ ls -la ${HOME}/liquibase
drwxr-xr-x. 5 kmaau kmaau  60 Aug  6 13:26 .
drwx------. 3 kmaau kmaau 189 Aug 10 04:19 ..
drwxr-xr-x. 3 kmaau kmaau  67 Aug  6 14:04 db
drwxr-xr-x. 7 kmaau kmaau 150 Aug 10 04:18 .git
drwxr-xr-x. 3 kmaau kmaau  23 Aug  6 03:56 .github
-rw-r--r--. 1 kmaau kmaau  20 Aug  6 03:37 README.md

[kmaau@rocky ~]$ cd ${HOME}/liquibase/.github/workflows

[kmaau@rocky workflows]$ vi build.yml 
::
::

[kmaau@rocky workflows]$ cat rocky-build.yml
[[blue:# .github/workflows/rocky-build.yml]]
[[blue:name: Build on Rocky]]
[[blue:]]
[[blue:on:]]
[[blue:  push:]]
[[blue:    branches: [main]]]
[[blue:]]
[[blue:jobs:]]
[[blue:  build:]]
[[blue:    # Target the self-hosted runner with matching labels]]
[[blue:    runs-on: [self-hosted, rocky]]]
[[blue:]]
[[blue:    steps:]]
[[blue:      - name: Checkout code]]
[[blue:        uses: actions/checkout@v4]]
[[blue:]]
[[blue:      - name: Show system info]]
[[blue:        run: |]]
[[blue:          cat /etc/rocky-release]]
[[blue:          uname -r]]
[[blue:          hostname]]
[[blue:]]
[[blue:      - name: echo /tmp/helloworld.txt]]
[[blue:        run: |]]
[[blue:          echo "Hello World" >> /tmp/helloworld.txt]]

[kmaau@rocky workflows]$ git status
On branch main
Your branch is up to date with 'origin/main'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        [[red:rocky-build.yml]]
no changes added to commit (use "git add" and/or "git commit -a")

[kmaau@rocky workflows]$ git add rocky-build.yml 

[kmaau@rocky workflows]$ git commit -m "Testing self-hosted runner"
[main 4369d67] Testing self-hosted runner
 1 file changed, 3 insertions(+), 11 deletions(-)
 rename .github/workflows/{build.yml => rocky-build.yml} (63%)

[kmaau@rocky workflows]$ git push
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 729 bytes | 729.00 KiB/s, done.
Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/kmaau/liquibase.git
   e0e30e5..4369d67  main -> main

#
# verification after push: 
#
[kmaau@rocky workflows]$ ls -l /tmp/helloworld.txt 
-rw-r--r--. 1 github-runner github-runner 12 Aug 10 05:42 /tmp/helloworld.txt
[kmaau@rocky workflows]$ cat /tmp/helloworld.txt 
[[blue:Hello World]]

#
# runner output:
#
build 
succeeded 1 minute ago in 9s 
● Set up job                                                                                               2s
Current runner version: '2.336.0' 
Runner name: 'rocky-runner-01' 
Runner group name: 'Default' 
Machine name: 'rocky' 
GITHUB_TOKEN Permissions 
Secret source: Actions 
Prepare workflow directory 
Prepare all required actions 
Getting action download info 
Download action repository 'actions/checkout@v4' (SHA:11d5960a326750d5838078e36cf38b85af677262) 
Complete job name: build 
● Checkout code                                                                                            2s
Syncing repository: kmaau/liquibase 
Getting Git version info 
Temporarily overriding HOME='/home/github-runner/_work/_temp/092347f9-2efb-4f3b-8d44-2f4e8a621d31' before making global git config changes 
Adding repository directory to the temporary git global config as a safe directory 
[[blue:/usr/bin/git config --global --add safe.directory /home/github-runner/_work/liquibase/liquibase]]
Deleting the contents of '/home/github-runner/_work/liquibase/liquibase' 
Initializing the repository 
Disabling automatic garbage collection 
Setting up auth 
  [[blue:/usr/bin/git config --local --name-only --get-regexp core\.sshCommand]]
  [[blue:/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' &&]]
  [[blue:git config --local --unset-all 'core.sshCommand' || :"]]
  [[blue:/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader]]
  [[blue:/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' &&]]
  [[blue:git config --local --unset-all 'http.https://github.com/.extraheader' || :"]] 
  [[blue:/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:]]
  [[blue:/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url]] 
  [[blue:/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***]]
Fetching the repository 
Determining the checkout info 
[[blue:/usr/bin/git sparse-checkout disable]]
[[blue:/usr/bin/git config --local --unset-all extensions.worktreeConfig]]
Checking out the ref 
[[blue:/usr/bin/git log -1 --format=%H]]
4369d67ad204c4863e56211f70dc3df4d39e6eba 
● Show system info                                                                                         0s
Run cat /etc/rocky-release 
Rocky Linux release 9.8 (Blue Onyx) 
5.14.0-687.10.1.el9_8.0.1.x86_64 
rocky 
echo /tmp/helloworld.txt                                                                                 0s
Run echo "Hello World" >> /tmp/helloworld.txt 
● Post Checkout code                                                                                       0s
Node 20 is being deprecated. This workflow is running with Node 24 by default. If you need to temporarily use Node 20, 
you can set the ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true environment variable. For more information see:
 https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ 
Post job cleanup. 
[[blue:/usr/bin/git version]]
git version 2.52.0 
Temporarily overriding HOME='/home/github-runner/_work/_temp/27ea49af-0d31-427f-9c7b-06edbde1109e' before making global git config changes 
Adding repository directory to the temporary git global config as a safe directory 
[[blue:/usr/bin/git config --global --add safe.directory /home/github-runner/_work/liquibase/liquibase]] 
[[blue:/usr/bin/git config --local --name-only --get-regexp core\.sshCommand]]
[[blue:/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"]] 
[[blue:/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader]] 
http.https://github.com/.extraheader 
[[blue:/usr/bin/git config --local --unset-all http.https://github.com/.extraheader ]]
[[blue:/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && ]]
[[blue:git config --local --unset-all 'http.https://github.com/.extraheader' || :" ]]
[[blue:/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir: ]]
[[blue:/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url ]]
● Complete job                                                                                             0s
Cleaning up orphan processes 
[[yellow:Warning: Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4.]]
[[yellow:For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/]]