Commit Graph

50 Commits

Author SHA1 Message Date
Luke Hagar
f3acb36e36 Add logic to skip .slinkignore files during URL collection in fsurls.go
Enhance the CollectURLs and CollectURLsProgress functions to ensure that any .slinkignore files are excluded from scanning. This change improves the handling of ignored paths and maintains consistency in the ignore logic.
v1.0.48
2025-09-16 19:55:54 +00:00
Luke Hagar
3427464985 Refactor ignore path handling in fsurls.go to improve whitespace trimming and add recursive matching for directory-like patterns. Enhance the logic to compile ignore lines more effectively, ensuring better support for various ignore scenarios. v1.0.47 2025-09-13 03:42:12 +00:00
Luke Hagar
7808f2337b Enhance URL ignoring logic in fsurls.go to support wildcard patterns and add tests for ignoring specific URLs. Introduce a new function to convert wildcard patterns to regex for improved matching accuracy. v1.0.46 2025-09-13 03:34:12 +00:00
Luke Hagar
d2dbfe9dd1 Update .slinkignore to include additional SailPoint API URLs and enhance test coverage for ignored URLs. Modify tests to ensure proper handling of ignored paths and URLs, including node_modules and package-lock.json. v1.0.45 2025-09-13 03:17:44 +00:00
Luke Hagar
4af80ed208 Refactor .slinkignore loading logic in fsurls.go to improve configuration detection and error handling. Introduce findSlinkyConfig function to search for .slinkignore files in parent directories. Enhance JSON parsing with relaxed error handling and emit warnings for misconfigurations. v1.0.44 2025-09-13 02:27:37 +00:00
Luke Hagar
04fb6f150a Fix markdown chunking in check.go by removing extra newline and comment out debug logging in fsurls.go for cleaner output during URL collection. v1.0.43 2025-09-13 01:59:11 +00:00
Luke Hagar
211fafe931 Refactor string splitting in check.go and fsurls.go to use strings.SplitSeq for improved performance. Enhance debug output for .gitignore and .slinkignore file handling, providing clearer logging during file checks and reads. v1.0.42 2025-09-13 01:49:22 +00:00
Luke Hagar
2df17e8247 Refactor URL extraction in fsurls.go to improve handling of matches and offsets. Replace extractCandidates with extractCandidateMatches for better clarity and accuracy in URL processing. Update WriteMarkdown function to enhance link formatting in reports, ensuring correct display and linking of file paths with line numbers. v1.0.41 2025-09-13 01:14:55 +00:00
Luke Hagar
7c52360fbe Update progress logging format in check.go to use "::progress::" instead of "::notice::" for better clarity in output. v1.0.40 2025-09-12 21:01:16 +00:00
Luke Hagar
54d7797089 Add .slinkignore support for URL and path exclusions
Introduce a new .slinkignore file format to allow users to specify paths and URLs to ignore during scanning. Update the CollectURLs and CollectURLsProgress functions to respect these ignore rules. Add tests to verify the functionality of the .slinkignore file, ensuring that specified paths and URLs are excluded from results. Update README.md to document the new feature and its usage.
v1.0.39
2025-09-12 20:56:45 +00:00
Luke Hagar
ae5fcf868c Enhance URL extraction in fsurls.go by introducing new trimming functions for leading and trailing delimiters, improving URL sanitization. Update regex patterns for better markdown handling and adjust the extractCandidates function to support relative paths. Add tests to validate URL sanitization and preservation of balanced parentheses. v1.0.38 2025-09-12 20:37:23 +00:00
Luke Hagar
1c32afafa6 Remove unnecessary HTML details tags from markdown output in WriteMarkdown function, streamlining the generated report format. v1.0.37 2025-09-12 20:06:57 +00:00
Luke Hagar
30a69f35a3 Refactor PR comment handling in check.go to support chunked posting of comments, ensuring compliance with GitHub's comment body limit. Enhance markdown processing by introducing chunkMarkdownByURL function and updating upsertPRComments to delete existing comments before posting new ones. v1.0.36 2025-09-12 19:51:39 +00:00
Luke Hagar
2ac0d7d5a0 Enhance error handling and debug output in upsertPRComment function of check.go, ensuring proper response processing and improved troubleshooting for PR comment operations. v1.0.35 2025-09-12 19:34:07 +00:00
Luke Hagar
b1c1df217b Add debug output in check.go for environment detection and PR comment handling, enhancing troubleshooting capabilities during execution. v1.0.34 2025-09-12 19:24:51 +00:00
Luke Hagar
3a9fdfb479 Improve timezone handling in WriteMarkdown function of markdown.go by adding error checking for LoadLocation and providing a fallback to a fixed timezone if loading fails. v1.0.33 2025-09-12 19:06:00 +00:00
Luke Hagar
d54ac41670 Refactor PR comment handling by moving it to the CLI in check.go, removing the previous implementation from entrypoint.sh. Enhance report summary to include the number of files scanned and ensure markdown report generation is streamlined. v1.0.32 2025-09-12 18:32:42 +00:00
Luke Hagar
f0c3f3f912 Modify entrypoint.sh to allow execution continuation on failure, ensuring PR comments are posted even if the run fails. Update exit handling to reflect the SLINKY_EXIT_CODE. v1.0.31 2025-09-12 17:30:16 +00:00
Luke Hagar
0c8486d289 Refactor URL checking in check.go to run CheckURLs concurrently, improving performance and responsiveness during URL scanning. v1.0.30 2025-09-12 16:56:08 +00:00
Luke Hagar
64c05b380c Enhance URL scanning functionality in check.go by allowing comma-separated targets and improving debug output. Refactor root.go and run.go to support new target handling and display scanned file counts in the TUI. Introduce CollectURLsProgress in fsurls.go for detailed file processing feedback. v1.0.29 2025-09-12 16:50:40 +00:00
Luke Hagar
1085baa766 Refactor entrypoint.sh, check.go, and run.go to support positional targets for URL scanning, enhancing flexibility. Update README.md to reflect changes in target handling and provide clearer usage instructions. v1.0.28 2025-09-12 15:52:45 +00:00
Luke Hagar
c563c8026f Add debug output for path walking in CollectURLs function in fsurls.go to aid in troubleshooting. v1.0.27 2025-09-12 15:04:39 +00:00
Luke Hagar
302eddc97e Add debug output for consolidated configuration and CLI arguments in entrypoint.sh v1.0.26 2025-09-12 14:55:53 +00:00
Luke Hagar
d12791ef42 Refactor error handling and formatting in WriteMarkdown function of markdown.go for improved readability and consistency. v1.0.25 2025-09-11 22:23:00 +00:00
Luke Hagar
631a571ecf Refactor markdown report generation in markdown.go to improve formatting and structure, including reordering summary details and consolidating optional root path handling. v1.0.24 2025-09-11 22:18:52 +00:00
Luke Hagar
ca102c687d Refactor COMMENT_BODY construction in entrypoint.sh to use printf for improved formatting of markdown report. v1.0.23 2025-09-11 22:10:37 +00:00
Luke Hagar
3040577b67 Update test cases in fsurls_test.go and lang_files_test.go to include the new parameter for URL collection in CollectURLs function. v1.0.22 2025-09-11 22:06:20 +00:00
Luke Hagar
90845181d9 Update fsCollect function in fs_bridge.go to include an additional parameter for URL collection, enhancing its functionality. v1.0.21 2025-09-11 22:03:05 +00:00
Luke Hagar
6d9be77a14 Update markdown report generation to combine last run and duration details into a single line for improved clarity. v1.0.20 2025-09-11 21:43:08 +00:00
Luke Hagar
666294151e Add message for no issues found in markdown report generation and handle file creation accordingly in markdown.go v1.0.19 2025-09-11 21:29:15 +00:00
Luke Hagar
f3804fcd2d Add respect_gitignore input to action.yml and update related logic in entrypoint.sh, check.go, and fsurls.go to support .gitignore handling during URL collection. v1.0.18 2025-09-11 21:02:14 +00:00
Luke Hagar
9148a9108c Enhance PR comment handling in entrypoint.sh to update existing comments or create new ones, and improve markdown report generation in markdown.go by adding optional root path and duration details. v1.0.17 2025-09-11 20:00:18 +00:00
Luke Hagar
a0598ac3e9 Fix trailing delimiter check in fsurls.go to include double quotes for accurate string trimming v1.0.16 2025-09-11 19:41:56 +00:00
Luke Hagar
1f593407ca Add debug logging for scanned files in fsurls.go to improve visibility during URL collection v1.0.15 2025-09-11 18:58:43 +00:00
Luke Hagar
d3072d1f64 Add debug logging for URL status in check.go to enhance troubleshooting in GitHub Actions v1.0.14 2025-09-11 18:40:26 +00:00
Luke Hagar
f1f09e0fe5 Refactor PR comment logic in entrypoint.sh to improve error handling and remove dependency on GITHUB_TOKEN in action.yml v1.0.13 2025-09-11 18:05:23 +00:00
Luke Hagar
55ef013182 Add GITHUB_TOKEN input to action.yml for enhanced authentication v1.0.12 2025-09-11 17:50:36 +00:00
Luke Hagar
59e4bad1c5 Update CI workflow to disable failure on action failures for improved stability during runs. v1.0.11 2025-09-11 17:18:53 +00:00
Luke Hagar
72f740471d Refactor Dockerfile to remove unnecessary user creation and streamline image build process by directly installing dependencies. v1.0.10 2025-09-11 17:14:19 +00:00
Luke Hagar
746af385c4 Fix argument formatting in entrypoint.sh for fail-on-failures option to ensure consistent syntax. v1.0.9 2025-09-11 17:11:24 +00:00
Luke Hagar
82b9299288 Remove Slinky action files including action.yml, Dockerfile, and entrypoint.sh to streamline the repository.
Updated CI file
v1.0.8
2025-09-11 17:06:41 +00:00
Luke Hagar
56bd74b49d Update test file paths to use 'testdata' directory for consistency in URL collection tests v1.0.7 2025-09-11 17:01:01 +00:00
Luke Hagar
e57f8c0d73 Update action.yml to use specific Docker image and refactor entrypoint.sh for improved argument handling; add GitHub Actions workflow for building and publishing container image. v1.0.6 2025-09-11 16:47:41 +00:00
Luke Hagar
b0c7ffe677 Refactor input and output parameter names in action.yml for consistency v1.0.5 2025-09-11 16:28:22 +00:00
Luke Hagar
eae00e0da1 Remove unused parameters from Slinky action in README v1.0.4 2025-09-11 16:20:44 +00:00
Luke Hagar
6a957f4c57 Update README to reference the correct Slinky action repository v1.0.3 2025-09-11 16:19:24 +00:00
Luke Hagar
a47630c7ef moved test files, adjusted publishing and repo structure v1.0.2 2025-09-11 16:17:47 +00:00
Luke Hagar
cd45e4ccdb moving action files, adding publishing, adjusted usage v1.0.1 v1.0.0 2025-09-11 16:09:36 +00:00
Luke Hagar
c753d4031a pushing the rest 2025-09-11 15:59:53 +00:00
Luke Hagar
4b08a5b8e0 first commit 2025-09-11 15:57:46 +00:00