Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ncalteen
Copy link
Collaborator

@ncalteen ncalteen commented Jul 7, 2025

This pull request introduces support for pre and post scripts in GitHub Actions, updates documentation to reflect these changes, and adds fixtures to test the functionality across different languages and module systems.

Closes #183

Documentation Updates:

  • CHANGELOG.md: Added an entry for version 4, highlighting support for pre and post scripts in GitHub Actions.
  • README.md: Updated the local-action run command to include optional --pre and --post arguments, along with examples and descriptions for their usage.

Fixture Additions for pre and post Scripts:

  • JavaScript Fixtures:
    • Added pre and post scripts with index.js and main.js files in __fixtures__/javascript/success and __fixtures__/javascript-esm/success. These scripts demonstrate basic input handling and output setting for actions. [1] [2]
  • TypeScript Fixtures:
    • Added pre and post scripts with index.ts and main.ts files in __fixtures__/typescript/success and __fixtures__/typescript-esm/success. These scripts showcase similar functionality as the JavaScript fixtures but with TypeScript syntax. [1] [2] [3] [4]

Utility Mock:

  • __fixtures__/path.ts: Added a mock implementation of the resolve function using Jest for testing purposes.

@ncalteen ncalteen self-assigned this Jul 7, 2025
Copilot AI review requested due to automatic review settings July 7, 2025 19:41
@github-actions
Copy link

github-actions bot commented Jul 7, 2025

Semantic Version Check Passed ✅

Version in manifest file package.json is valid.

This comment will be automatically updated as changes are pushed to this PR branch.

@github-actions
Copy link

github-actions bot commented Jul 7, 2025

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 5 0 0 0.14s
✅ JAVASCRIPT prettier 19 0 0 1.12s
✅ JSON npm-package-json-lint yes no no 0.67s
✅ JSON prettier 29 0 0 3.83s
✅ MARKDOWN markdownlint 9 0 0 1.16s
✅ REPOSITORY checkov yes no no 23.81s
✅ REPOSITORY gitleaks yes no no 1.46s
✅ REPOSITORY git_diff yes no no 0.02s
✅ REPOSITORY grype yes no no 44.23s
✅ REPOSITORY secretlint yes no no 1.15s
✅ REPOSITORY syft yes no no 6.59s
✅ REPOSITORY trivy yes no no 12.0s
✅ REPOSITORY trivy-sbom yes no no 5.62s
✅ REPOSITORY trufflehog yes no no 29.8s
✅ TYPESCRIPT prettier 97 0 0 4.4s
✅ YAML prettier 24 0 0 1.12s
✅ YAML yamllint 24 0 0 0.83s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@ncalteen ncalteen merged commit cfca9e1 into main Jul 7, 2025
14 checks passed
@ncalteen ncalteen deleted the ncalteen/183 branch July 7, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Investigate] Pre/Post Support

2 participants