@@ -100,52 +100,62 @@ If no GitHub Access token is passed, pinact calls GitHub REST API without access
100100
101101# # Usage
102102
103- ` ` ` console
104- $ pinact help
105- NAME:
106- pinact - Pin GitHub Actions versions. https://github/com/suzuki-shunsuke/pinact
107-
108- USAGE:
109- pinact [global options] command [command options] [arguments...]
103+ Please see [USAGE](USAGE.md).
110104
111- VERSION:
112- 0.1.0 (8ccd55944c83ff1f4d738343c28d4a6109246d06)
105+ # # How to use
113106
114- COMMANDS:
115- version Show version
116- run Pin GitHub Actions versions
117- help, h Shows a list of commands or help for one command
107+ Please run `pinact run` on a Git repository root directory, then files `\.github/workflows/.*\.ya?ml$` are fixed.
118108
119- GLOBAL OPTIONS:
120- --log-level value log level [$PINACT_LOG_LEVEL]
121- --help, -h show help
122- --version, -v print the version
109+ ` ` ` console
110+ $ pinact run
123111` ` `
124112
113+ You can also specify target files by command line arguments.
114+
115+ e.g.
116+
125117` ` ` console
126- $ pinact help run
127- NAME:
128- pinact run - Pin GitHub Actions versions
118+ $ pinact run action.yaml
119+ ` ` `
129120
130- USAGE:
131- pinact run [command options] [arguments...]
121+ A configuration file is optional, but pinact supports it.
122+ You can create a configuration file by `pinact init`.
132123
133- DESCRIPTION:
134- If no argument is passed, pinact searches GitHub Actions workflow files from .github/workflows.
124+ ` ` ` console
125+ $ pinact init
126+ ` ` `
135127
136- $ pinact run
128+ About the configuration, please see [Configuration](#Configuration).
137129
138- You can also pass workflow file paths as arguments.
130+ # # Configuration
139131
140- e.g.
132+ pinact supports a configuration file `.pinact.yaml`.
133+ You can also specify the configuration file path by the environment variable `PINACT_CONFIG` or command line option `-c`.
141134
142- $ pinact run .github/actions/foo/action.yaml .github/actions/bar/action .yaml
135+ .pinact .yaml
143136
137+ e.g.
144138
145- OPTIONS:
146- --help, -h show help
139+ ` ` ` yaml
140+ files:
141+ - pattern: "^\\ .github/workflows/.*\\ .ya?ml$"
142+ - pattern: "^(.*/)?action\\ .ya?ml$"
143+
144+ ignore_actions:
145+ # slsa-framework/slsa-github-generator doesn't support pinning version
146+ # > Invalid ref: 68bad40844440577b33778c9f29077a3388838e9. Expected ref of the form refs/tags/vX.Y.Z
147+ # https://github.com/slsa-framework/slsa-github-generator/issues/722
148+ - name: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml
147149` ` `
148150
151+ # ## `files[].pattern`
152+
153+ The regular expression of target files. If files are passed via positional command line arguments, the configuration is ignored.
154+
155+ # ## `ignore_actions[].name`
156+
157+ Action and reusable workflow names that pinact ignores.
158+
149159# # See also
150160
151161- [Renovate github-actions Manager - Additional Information](https://docs.renovatebot.com/modules/manager/github-actions/#additional-information)
0 commit comments