Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2026 12:46:45 +0000
From:      Hiroki Tagato <tagattie@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ed80103ee50d - main - devel/pinact: Add port: CLI to pin GitHub Actions and Reusable Workflows
Message-ID:  <6a1444b5.41bf4.7a5b44f1@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ed80103ee50dfa46c4b162529f23007e6f37b0da

commit ed80103ee50dfa46c4b162529f23007e6f37b0da
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-05-25 12:45:04 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-05-25 12:46:34 +0000

    devel/pinact: Add port: CLI to pin GitHub Actions and Reusable Workflows
    
    pinact is a CLI to edit GitHub Workflow and Composite action files and
    pin versions of Actions and Reusable Workflows. pinact can also update
    their versions and verify version annotations.
    
    WWW: https://github.com/suzuki-shunsuke/pinact
---
 devel/Makefile         |  1 +
 devel/pinact/Makefile  | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++
 devel/pinact/distinfo  |  5 +++++
 devel/pinact/pkg-descr |  3 +++
 4 files changed, 65 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index ed0bf847b4a9..1a191acba4bf 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4346,6 +4346,7 @@
     SUBDIR += picprog
     SUBDIR += pijul
     SUBDIR += pika
+    SUBDIR += pinact
     SUBDIR += pipelight
     SUBDIR += pipestatus
     SUBDIR += pire
diff --git a/devel/pinact/Makefile b/devel/pinact/Makefile
new file mode 100644
index 000000000000..0766aa8166f2
--- /dev/null
+++ b/devel/pinact/Makefile
@@ -0,0 +1,56 @@
+PORTNAME=	pinact
+DISTVERSIONPREFIX=	v
+DISTVERSION=	3.10.1
+CATEGORIES=	devel
+
+MAINTAINER=	tagattie@FreeBSD.org
+COMMENT=	CLI to pin GitHub Actions and Reusable Workflows
+WWW=		https://github.com/suzuki-shunsuke/pinact
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:1.26+,modules
+
+GO_MODULE=	github.com/suzuki-shunsuke/${PORTNAME}/v3
+GO_TARGET=	./cmd/pinact
+GO_LDFLAGS=	-w -X main.version=${DISTVERSION}
+
+PLIST_FILES=	bin/${PORTNAME}
+PORTDOCS=	CONTRIBUTING.md README.md USAGE.md
+
+OPTIONS_DEFINE=	COMPLETIONS DOCS
+OPTIONS_DEFAULT=COMPLETIONS
+
+COMPLETIONS_DESC=	Build and/or install shell completions
+
+COMPLETIONS_PLIST_FILES=etc/bash_completion.d/${PORTNAME} \
+			share/fish/completions/${PORTNAME}.fish \
+			share/zsh/site-functions/_${PORTNAME}
+
+pre-build:
+	@${CP} ${GO_WRKSRC}/vendor/github.com/suzuki-shunsuke/ghtkn-go-sdk/ghtkn/internal/browser/browser_linux.go \
+		${GO_WRKSRC}/vendor/github.com/suzuki-shunsuke/ghtkn-go-sdk/ghtkn/internal/browser/browser_freebsd.go
+
+post-build-COMPLETIONS-on:
+.for shell in bash fish zsh
+	${GO_WRKDIR_BIN}/pinact completion ${shell} > \
+		${GO_WRKSRC}/${PORTNAME}.${shell}
+.endfor
+
+post-install-COMPLETIONS-on:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \
+		${STAGEDIR}${PREFIX}/share/fish/completions \
+		${STAGEDIR}${PREFIX}/share/zsh/site-functions
+	${INSTALL_DATA} ${GO_WRKSRC}/${PORTNAME}.bash \
+		${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.fish \
+		${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.zsh \
+		${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/devel/pinact/distinfo b/devel/pinact/distinfo
new file mode 100644
index 000000000000..d295b97969c4
--- /dev/null
+++ b/devel/pinact/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1779710143
+SHA256 (go/devel_pinact/pinact-v3.10.1/v3.10.1.mod) = a34a7424a97316e42e4728d72f00d7e5cd7b55979dad9993a3d5b707a2849028
+SIZE (go/devel_pinact/pinact-v3.10.1/v3.10.1.mod) = 1713
+SHA256 (go/devel_pinact/pinact-v3.10.1/v3.10.1.zip) = dfd166955c441844f13007abda0bd4b4112f95e0ff66397d1e81f61b34aa80cd
+SIZE (go/devel_pinact/pinact-v3.10.1/v3.10.1.zip) = 129260
diff --git a/devel/pinact/pkg-descr b/devel/pinact/pkg-descr
new file mode 100644
index 000000000000..e9f42936f8bb
--- /dev/null
+++ b/devel/pinact/pkg-descr
@@ -0,0 +1,3 @@
+pinact is a CLI to edit GitHub Workflow and Composite action files and
+pin versions of Actions and Reusable Workflows. pinact can also update
+their versions and verify version annotations.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1444b5.41bf4.7a5b44f1>