update automation for 2025#775
Conversation
|
Hey @mildwonkey , In that case, give us some time, we'll discuss on this as we intend to make the internal tool available to all users if that eases up the updation process without our intervention. However, we also are yet to explore whether we need to update all the files of a repo next year or only those files that are modified. Currently, updating headers is just a one time thing which we intend to do. C.C - @mallikabandaru |
|
@mohanmanikanta2299 - that's an option, but I could have been more accurate there! A binary could certainly work, as long as we have a way of using it in a github action. That's the key detail: accessible by actions. Today, the action calls |
|
+1 to what @mildwonkey said. If a public repo is not an option, here is an example of enabling public repos to access tools from a private repo from elsewhere in the company: https://github.com/hashicorp/security-scanner?tab=readme-ov-file#for-public-repositories |
We're somewhat stuck in an awkward position in that the new copyright header tool (that can automatically update all files, and also automatically handles the {firstyear, lastyear} style header) isn't publicly available as a binary. This PR updates our automation so at least new files will get the correct header and it can continue to run in automation.
We will need to update this file in 2026, and run the fork of the copyright tool (built locally) to update these files with the correct year. Ideally by then we can also just use that tool directly (in automation), instead of running two tools, but that's up to the team that owns the tool.