Code Literal Sentinel
Version updated for https://github.com/Malnati/code-literal-sentinel to version v3.0.18.
- This action is used across all versions by ? repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
Updated action version and modified input defaults and descriptions. Enhanced error handling for target paths and improved output generation. Malnati/code-literal-sentinel@v3.0.18
This pull request updates the Code Literal Sentinel GitHub Action to improve its flexibility, output handling, and robustness. The main changes include updating the default scan path, refining output variables, enhancing validation and reporting, and simplifying the output generation process.
Configuration and Output Improvements:
- Changed the default value of
target_pathfrom a file extension filter to".", allowing the action to scan the entire repository by default. - Added a new output variable
report_pathto explicitly provide the path to the generated JSON report. Updated the description of thejsonoutput to clarify that it now returns the path to the generated JSON file instead of its contents.
Validation and Robustness:
- Improved the validation logic to check if each path in
TARGET_PATHis either a file or directory, not just a directory. Addedset -euo pipefailfor safer script execution.
Scanning Logic and Output Handling:
- Refactored the file discovery and matching logic to use temporary files for storing file lists and match results, improving reliability for large file sets. Now uses
findpiped togrepand writes results to a file, then checks if the file is empty to determine if files were found. - Simplified the output logic: the
jsonoutput now returns the path to the report file, not the report contents, and redundant meta output files and variables have been removed. The reporting of status and count is now more direct and consistent.
Miscellaneous:
- Updated the action to depend on version
v3.0.18ofMalnati/code-literal-sentinel.