nanos / FediFetcher

FediFetcher is a tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances, and adds them to your own Mastodon instance.
https://blog.thms.uk/fedifetcher?utm_source=github
MIT License
297 stars 215 forks source link

How to use on-done, on-start, on-fail with secret URLs? #57

Closed lnlyssg closed 1 year ago

lnlyssg commented 1 year ago

I'm using the GitHub Action and would like to use on-done etc. but I don't want the URLs to be visible in the config.json file. Is there any way of achieving this?

nanos commented 1 year ago

Unfortunately not.

Also, keep in mind that your GitHub Action execution logs are public anyway, so the urls would show up in there anyway.

If you don’t want those public, you’ll need to run the script via cron on your own server (or in a container)

lnlyssg commented 1 year ago

I was thinking something along the lines of how the access-token is handled... I'm not an expert when it comes to Actions but presumably I could create some new Repository secrets and then update get_context.yml to use them?

nanos commented 1 year ago

Whilst that is certainly technically possible, I've just moved away from supplying options in this way.

If you wanted to make some changes in your own fork to support that:

1) Add them a Action Secrets 2) Adjust the .github/workflows/get_context.yml file on line 33 to pass on the options as flags. Something along the lines of --on-done=${{ secrets.ON_DONE }} etc