Skip to content

Commit fdc5dc8

Browse files
Copilotpelikhan
andauthored
refactor: extract content redaction script to separate JS file
Move inline content redaction github-script to a separate reusable JavaScript file in actions/setup/js/ following repository conventions. Changes: - Created actions/setup/js/content_redaction.cjs with runContentRedaction function - Created comprehensive test suite in content_redaction.test.cjs (9 tests, all passing) - Updated buildContentRedactionEngineStep to require() the new file - Fixed SCOPE env var to be a JSON string instead of inline array - Regenerated all 10 workflow lock files using content-redaction Benefits: - Easier to maintain and test the redaction logic - Follows established patterns (add_labels.cjs, add_comment.cjs, etc.) - Reduces inline script complexity in generated workflows - Better error handling and documentation Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 3c1f48a commit fdc5dc8

13 files changed

Lines changed: 444 additions & 875 deletions

‎.github/workflows/approach-validator.lock.yml‎

Lines changed: 9 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/archie.lock.yml‎

Lines changed: 9 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/auto-triage-issues.lock.yml‎

Lines changed: 9 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/brave.lock.yml‎

Lines changed: 9 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)