GitHub Actions to pin GitHub Actions and reusable workflows by pinact.
This action fixes files and pushes a commit to a remote branch.
If you don't want to push a commit, this action can also only validate files. In this case, if actions aren't pinned CI fails.
Install these tools
- suzuki-shunsuke/pinact
- int128/ghcp: To push a commit to a remote branch
This action uses GitHub Access Token too.
The following permissions may be needed.
pull-requests: write
: To push a commit to a remote branchcontents: read
: To access private actionsworkflows: write
: To update GitHub Action workflow files
- uses: suzuki-shunsuke/pinact-action@a60b07ee63e41654915780a3297ff9f5f6b6db63 # v0.1.0
with:
github_token: ${{secrets.PAT}}
- uses: suzuki-shunsuke/pinact-action@a60b07ee63e41654915780a3297ff9f5f6b6db63 # v0.1.0
with:
skip_push: false