https://github.com/step-security/jest-coverage-action-demo
https://github.com/step-security/jest-coverage-action-demo
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/step-security/jest-coverage-action-demo
- Owner: step-security
- License: mit
- Created: 2025-01-29T11:05:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-29T09:46:22.000Z (7 months ago)
- Last Synced: 2025-12-31T18:41:58.117Z (7 months ago)
- Language: Go
- Size: 11 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 100
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# gh-setup
Setup asset of Github Releases.
[](https://github.com/step-security/gh-setup/actions/workflows/ci.yml)
Key features of `gh-setup` are:
- **Works as a GitHub CLI extension (or a standalone CLI) as well as a GitHub Action.**
- **Could be used as a part to create a GitHub Action like `setup-*`.**
## As a GitHub Action
### Usage
``` yaml
# .github/workflows/doc.yml
[...]
steps:
-
name: Setup tbls
uses: step-security/gh-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repo: k1LoW/tbls
# version: v1.60.0
# os: linux
# arch: amd64
# bin-match: tbls
# checksum: f1ee97bbf22d5324ec2b468d83f43088d9e5c61deb77fafc220b297e03d47574
# force: true
# strict: true
# verify-attestation: true
# attestation-flags: "--owner=k1LoW"
# gh-setup-version: latest
-
name: Run tbls
run: tbls doc
```
## As a part to create a GitHub Action like `setup-*`
``` yaml
# action.yml
name: 'Setup tbls'
description: 'GitHub Action for tbls, a CI-Friendly tool for document a database, written in Go.'
branding:
icon: 'box'
color: 'blue'
inputs:
github-token:
description: The GitHub token
default: ${{ github.token }}
required: false
version:
description: Version of tbls
default: latest
required: false
force:
description: Enable force setup
default: ''
required: false
checksum:
description: Checksum of tbls
default: ''
required: false
runs:
using: 'composite'
steps:
-
uses: step-security/gh-setup@v1
with:
repo: github.com/k1LoW/tbls
github-token: ${{ inputs.github-token }}
version: ${{ inputs.version }}
bin-match: tbls
checksum: ${{ inputs.checksum }}
force: ${{ inputs.force }}
```
## Attestation Verification
In GitHub Actions:
```yaml
- name: Setup k1LoW/tbls
uses: step-security/gh-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repo: k1LoW/tbls
verify-attestation: true
attestation-flags: "--owner=k1LoW"
```