Hello! I am trying to create a GitHub Actions workflow to automatically pull detection data from a receiver on a schedule. I am running into issues with authentication, as the motus R package prompts interactively for login credentials via readline(), which always returns an empty string in a non-interactive environment like GitHub Actions.
I have my credentials stored as GitHub secrets and am passing them as environment variables at runtime. I have also tried setting Motus$userLogin and Motus$userPassword directly before calling tagme(), but the package still prompts interactively and fails with the error:
Error: session variable 'userLogin' is undefined
Here is a simplified version of what I am trying:
Motus$userLogin = Sys.getenv('MOTUS_USER')
Motus$userPassword = Sys.getenv('MOTUS_PASS')
recv <- tagme(
'CTT-XXXXXXXX',
new = TRUE,
update = TRUE,
dir = 'data/'
)
I am using motus version 6.x on Ubuntu (via GitHub Actions). Has anyone successfully authenticated non-interactively in an automated or CI environment? Any guidance would be greatly appreciated