An open API service indexing awesome lists of open source software.

https://github.com/koki-develop/ghasec-action

🛡️ A GitHub Action to run ghasec, a security linter for GitHub Actions workflows.
https://github.com/koki-develop/ghasec-action

Last synced: 24 days ago
JSON representation

🛡️ A GitHub Action to run ghasec, a security linter for GitHub Actions workflows.

Awesome Lists containing this project

README

          

# ghasec-action

A GitHub Action to run [ghasec](https://github.com/koki-develop/ghasec), a security linter for GitHub Actions workflows.

## Usage

```yaml
- uses: koki-develop/ghasec-action@v1.0.2
```

### Inputs

| Name | Description | Default |
| --- | --- | --- |
| `version` | Version of ghasec to install (e.g. `X.Y.Z`, `vX.Y.Z`, or `latest`) | `latest` |
| `github-token` | GitHub token for API requests (to avoid rate limiting) | `${{ github.token }}` |
| `online` | Enable rules that require network access | `false` |
| `args` | Additional arguments to pass to ghasec | |

### Example

```yaml
name: ghasec

on:
pull_request:
push:
branches: [main]

jobs:
ghasec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: koki-develop/ghasec-action@v1.0.2
```

## License

[MIT](./LICENSE)