From a9e673bc0da495d198fa24103481dbe7b2f365b9 Mon Sep 17 00:00:00 2001 From: Takahiro Nakayama Date: Sun, 19 Jan 2025 08:24:19 +0900 Subject: [PATCH 1/2] Support .yml extension Signed-off-by: Takahiro Nakayama --- pkg/controller/run/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/run/config.go b/pkg/controller/run/config.go index 349642a..d771b38 100644 --- a/pkg/controller/run/config.go +++ b/pkg/controller/run/config.go @@ -22,7 +22,7 @@ type IgnoreAction struct { } func getConfigPath(fs afero.Fs) (string, error) { - for _, path := range []string{".pinact.yaml", ".github/pinact.yaml"} { + for _, path := range []string{".pinact.yaml", ".github/pinact.yaml", ".pinact.yml", ".github/pinact.yml"} { f, err := afero.Exists(fs, path) if err != nil { return "", fmt.Errorf("check if %s exists: %w", path, err) From 9f3bd58e9dbce8ff2756c528fe88c6420cb98b5d Mon Sep 17 00:00:00 2001 From: Takahiro Nakayama Date: Sun, 19 Jan 2025 08:24:28 +0900 Subject: [PATCH 2/2] Update doc Signed-off-by: Takahiro Nakayama --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dbb0a32..a531b6f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ index 84bd67a..5d92e44 100644 with: path: prime-numbers key: ${{ runner.os }}-primes - + actionlint: - uses: suzuki-shunsuke/actionlint-workflow/.github/workflows/actionlint.yaml@v0.5.0 + uses: suzuki-shunsuke/actionlint-workflow/.github/workflows/actionlint.yaml@b6a5f966d4504893b2aeb60cf2b0de8946e48504 # v0.5.0 @@ -135,7 +135,7 @@ We develop GitHub Actions to pin GitHub Actions and reusable workflows by pinact ## Configuration -pinact supports a configuration file `.pinact.yaml` or `.github/pinact.yaml`. +pinact supports a configuration file `.pinact.yaml`, `.github/pinact.yaml`, `.pinact.yml` or `.github/pinact.yml`. You can also specify the configuration file path by the environment variable `PINACT_CONFIG` or command line option `-c`. .pinact.yaml