Skip to content

Releases: suzuki-shunsuke/pinact

v0.1.2-3

01 May 03:54
Immutable release. Only release title and notes can be modified.
v0.1.2-3
1b7824c

Choose a tag to compare

v0.1.2-3 Pre-release
Pre-release

v0.1.2-2

01 May 03:27
Immutable release. Only release title and notes can be modified.
v0.1.2-2
e586494

Choose a tag to compare

v0.1.2-2 Pre-release
Pre-release

v0.1.3-1

25 Mar 09:49
Immutable release. Only release title and notes can be modified.
v0.1.3-1
64eb44d

Choose a tag to compare

v0.1.3-1 Pre-release
Pre-release

v0.1.2...v0.1.3-1

Update Go to v1.22.1
#358 Support lines with quotes @kazuki-hanai

v0.1.2

08 Jul 06:37
Immutable release. Only release title and notes can be modified.
v0.1.2
653c220

Choose a tag to compare

Pull Requests | Issues | v0.1.1...v0.1.2

Features

#99 Support configuration files
#99 Add a subcommand init to generate a configuration file

About Configuration file, please see Configuration.

  • Support ignoring specific actions and reusable workflows
  • Support specifying target files by regular expressions

e.g. .pinact.yaml

files:
  - pattern: "^\\.github/workflows/.*\\.ya?ml$"
  - pattern: "^(.*/)?action\\.ya?ml$"

ignore_actions:
  - name: actions/setup-java
  - name: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml

Add a subcommand init to generate a configuration file

$ pinact init # .pinact.yaml is generated.

v0.1.2-1

08 Jul 05:28
Immutable release. Only release title and notes can be modified.
v0.1.2-1
2c71268

Choose a tag to compare

v0.1.2-1 Pre-release
Pre-release

Pull Requests | Issues | v0.1.1...v0.1.2-1

Changelog

  • 2c71268 ci: add a test
  • 476c4ce feat: support configuration files
  • 46bafa3 Merge pull request #98 from suzuki-shunsuke/renovate/goreleaser-goreleaser-1.x
  • 0108f48 chore(aqua): update aqua/aqua-checksums.json
  • 461939c chore(deps): update dependency goreleaser/goreleaser to v1.19.2

v0.1.1

06 Jul 11:02
Immutable release. Only release title and notes can be modified.
v0.1.1
6dc04f6

Choose a tag to compare

Pull Requests | Issues | v0.1.0...v0.1.1

🐛 Bug Fixes

#95 #97 Keep lines of 404 actions
#96 #97 Skip actions pinned with full commit hash

Keep lines of 404 actions

AS IS

pinact v0.1.0 has a bug that if some actions are not found, the lines are removed.

$ pinact version
pinact version 0.1.0 (8ccd55944c83ff1f4d738343c28d4a6109246d06)

foo.yaml

name: foo
on: workflow_call
jobs:
  foo:
    runs-on: ubuntu-latest
    steps:
      - uses: suzuki-shunsuke/repo-404@83b7061638ee4956cf7545a6f7efe594e5ad0247
$ pinact run foo.yaml 
WARN[0000] get a reference                               error="GET https://api.github.com/repos/suzuki-shunsuke/repo-404/commits/83b7061638ee4956cf7545a6f7efe594e5ad0247: 404 Not Found []" pinact_version=0.1.0 program=pinact workflow_file=foo.yaml
$ git diff foo.yaml 
diff --git a/foo.yaml b/foo.yaml
index 7c23799..9ba4f83 100644
--- a/foo.yaml
+++ b/foo.yaml
@@ -4,4 +4,4 @@ jobs:
   foo:
     runs-on: ubuntu-latest
     steps:
-      - uses: suzuki-shunsuke/repo-404@83b7061638ee4956cf7545a6f7efe594e5ad0247
+

TO BE

pinact v0.1.1 fixed the bug.
If actions are not found, pinact ignores those actions.

$ pinact run foo.yaml 
WARN[0000] get a reference                               error="GET https://api.github.com/repos/suzuki-shunsuke/repo-404/commits/83b7061638ee4956cf7545a6f7efe594e5ad0247: 404 Not Found []" pinact_version=0.1.1 program=pinact workflow_file=foo.yaml

$ git diff foo.yaml # No change

Skip actions pinned with full commit hash

pinact v0.1.0 has a bug that if some actions are pinned by commit hash but don't have code comment, commit hash are commented.

$ pinact version
pinact version 0.1.0 (8ccd55944c83ff1f4d738343c28d4a6109246d06)

foo.yaml

name: foo
on: workflow_call
jobs:
  foo:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247
$ pinact run foo.yaml 
$ git diff foo.yaml
diff --git a/foo.yaml b/foo.yaml
index a52749f..c4c3f7f 100644
--- a/foo.yaml
+++ b/foo.yaml
@@ -4,4 +4,4 @@ jobs:
   foo:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247
+      - uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # 83b7061638ee4956cf7545a6f7efe594e5ad0247

TO BE

pinact v0.1.1 fixed the bug. pinact skips actions pinned with full commit hash.

$ pinact run foo.yaml
$ git diff foo.yaml # No change

v0.1.0

14 Apr 03:05
Immutable release. Only release title and notes can be modified.
v0.1.0
8ccd559

Choose a tag to compare

v0.1.0-1

14 Apr 02:44
Immutable release. Only release title and notes can be modified.
v0.1.0-1
374a4b1

Choose a tag to compare

v0.1.0-1 Pre-release
Pre-release

Pull Requests | Issues | ...v0.1.0-1

Changelog