{"repo":"xalvarez/prevent-file-change-action","free":true,"listed":false,"github":"https://github.com/xalvarez/prevent-file-change-action","clone":"git clone https://github.com/xalvarez/prevent-file-change-action.git","description":"Fail a pull request workflow if certain files are changed","language":"TypeScript","stars":17,"topics":["github-actions","nodejs"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Prevent file change action prevent-file-change-action is a GitHub Action which allows you to force a workflow fail if a pull request attempts to modify a given file. Syntax: Complete example: The action has the following inputs: - githubToken : ( Required ) The GitHub token used to authenticate with the GitHub API. This is typically the GITHUB TOKEN secret provided by GitHub Actions. - pattern : ( Required ) A JavaScript regular expression that matches the filenames (including path) of files which must not be changed. For example, . \\.example would match any file with the .example extension. - trustedAuthors : ( Optional ) A comma-separated list of GitHub usernames. If a pull request is opened by any of these authors, the action will not fail even if the pull request modifies a file that matches the pattern. - allowNewFiles : ( Optional ) A boolean value that determines whether new files that match the pattern should be allowed in the pull request. If set to true , the action will not fail even if a new file that matches the pattern is added in the pull request. If not provided or set to false , the action will fail if a new file that matches the pattern is added. - closePR : ( Optional ) A boolean value that determines whether the pull request should be closed if a pattern match is found. If set to true , the action will close the pull request instead of failing. If not provided or set to false , the action will fail if a pattern match is found. [!IMPORTANT] This Action supp","default_branch":null,"files":null,"tree":[],"storefront":"/r/xalvarez","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xalvarez/prevent-file-change-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}