Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to use service app with automation (e.g. GitHub Actions)? #244

Open
Aariq opened this issue Oct 30, 2023 · 0 comments
Open

Best way to use service app with automation (e.g. GitHub Actions)? #244

Aariq opened this issue Oct 30, 2023 · 0 comments

Comments

@Aariq
Copy link

Aariq commented Oct 30, 2023

What's the best way to use boxr and a box service app on automated services like GitHub actions or a scheduled .Rmd doc on Posit Connect?

  1. Storing the contents of the token text as a secret env var and passing it to box_auth_service(token_text = Sys.getenv(BOX_TOKEN_TEXT)
  2. Storing a user client ID and secret as secret env vars BOX_CLIENT_ID and BOX_CLIENT_SECRET and then running box_auth_service()

Both work locally, but 1) "feels" more correct for automation, but I'm not sure which is best. Any advice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant