PCMDI / input4MIPs_CVs

Controlled Vocabularies (CVs) for use in input4MIPs
https://input4mips-controlled-vocabularies-cvs.readthedocs.io/en/stable/
Creative Commons Attribution 4.0 International
5 stars 1 forks source link

Add script to auto-generate PRs that update the ESGF scrape #115

Open znichollscr opened 3 months ago

znichollscr commented 3 months ago

Description

Checklist

Please confirm that this pull request has done the following:

znichollscr commented 3 months ago

@durack1 this script works (this PR was auto-generated with it https://github.com/PCMDI/input4MIPs_CVs/pull/112). The things I don't know about are:

  1. how to automate the git operations on nimbus in a secure way. I assume we'd need to clone the repo as root or something so that only the cronjob could update it.
  2. how to store the GitHub API key securely on the server. Again, I assumed we'd have to make it only readable by root or something for actual security

In the meantime, we can obviously just run this script and make PRs by hand and it's fine.

durack1 commented 3 months ago

The easiest thing would be that I pull that onto the same machine (not nimbus) that is running the cronjob

znichollscr commented 3 months ago

The easiest thing would be that I pull that onto the same machine (not nimbus) that is running the cronjob

That'd work if you're happy with the security