https://github.com/pmalek/gha-pin
Pin Github Actions versions with commit SHA
https://github.com/pmalek/gha-pin
Last synced: 3 months ago
JSON representation
Pin Github Actions versions with commit SHA
- Host: GitHub
- URL: https://github.com/pmalek/gha-pin
- Owner: pmalek
- License: gpl-3.0
- Created: 2025-01-15T11:49:58.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-15T21:56:57.000Z (5 months ago)
- Last Synced: 2025-03-18T20:14:06.722Z (3 months ago)
- Language: Go
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gha-pin
Pin Github Actions versions with commit SHA
```diff
@@ -13,15 +13,15 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: make test.unit
integration-tests:
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: make test.unit
- name: setup golang
- uses: actions/[email protected]
+ uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
- name: run integration tests
run: make test.integration
```## How to install
```
go install github.com/pmalek/gha-pin/cmd/gha-pin@latest
```## How to use
```
gha-pin ...
```Optionally provide `GITHUB_TOKEN` environment variable to increase rate limit for Github API.