Checklist
Description
Enhance the sync-files workflow to automatically generate a GitHub Actions workflow that prevents modification of synced files in the target repository. This will ensure consistency and integrity by disallowing changes to files synced from the source repository (repo A) in the target repository (repo B).
The newly generated workflow will utilize the Ensure Files Changed GitHub Action to fail checks if modifications are detected in the list of synced files. The sync-files job will dynamically update the list of synced files in this workflow every time it runs.
Purpose
The purpose of this feature is to automate the enforcement of file integrity in the target repository. By preventing changes to synced files, we maintain alignment between the source and target repositories without manual intervention. This approach ensures:
- Synced files remain unchanged unless updated by the
sync-files job.
- The integrity of the sync process is preserved.
- Unintentional or unauthorized modifications to synced files are prevented without bypassing the required status checks.
Possible approaches
-
Generate Workflow Automatically:
- When the
sync-files job completes, it generates or updates a workflow YAML file in the target repository.
- This workflow uses the
Ensure Files Changed action to validate that no synced files have been modified.
-
Dynamic List Management:
- The
sync-files job dynamically updates the list of synced files in the generated workflow file.
-
Enforce Workflow Runs:
- Configure the rulesets to ensure the generated workflow must pass before changes can be merged.
Definition of done
ChatGPT link
cc. @mitsudome-r
Checklist
Description
Enhance the
sync-filesworkflow to automatically generate a GitHub Actions workflow that prevents modification of synced files in the target repository. This will ensure consistency and integrity by disallowing changes to files synced from the source repository (repo A) in the target repository (repo B).The newly generated workflow will utilize the Ensure Files Changed GitHub Action to fail checks if modifications are detected in the list of synced files. The
sync-filesjob will dynamically update the list of synced files in this workflow every time it runs.Purpose
The purpose of this feature is to automate the enforcement of file integrity in the target repository. By preventing changes to synced files, we maintain alignment between the source and target repositories without manual intervention. This approach ensures:
sync-filesjob.Possible approaches
Generate Workflow Automatically:
sync-filesjob completes, it generates or updates a workflow YAML file in the target repository.Ensure Files Changedaction to validate that no synced files have been modified.Dynamic List Management:
sync-filesjob dynamically updates the list of synced files in the generated workflow file.Enforce Workflow Runs:
Definition of done
sync-filesjob to generate or update a GitHub Actions workflow file in the target repository.Ensure Files Changedaction in the generated workflow to validate file integrity.sync-filesjob runs.ChatGPT link
cc. @mitsudome-r