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

https://github.com/lfreleng-actions/pinned-versions-action

Ensures workflows are pinned to SHA commit values
https://github.com/lfreleng-actions/pinned-versions-action

actions audit auditing github-actions github-workflows security validation

Last synced: about 1 year ago
JSON representation

Ensures workflows are pinned to SHA commit values

Awesome Lists containing this project

README

          

# 📌 Pinned Versions Action

Verifies action/workflow calls use SHA commit values.

## pinned-versions-action

## Recommended Event Triggers

```yaml
on:
workflow_dispatch:
pull_request:
branches:
- main
- master
paths: [".github/**"]
```

## Usage Example

```yaml
jobs:
check-actions:
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: 'Check Pinned Versions'
uses: lfreleng-actions/pinned-versions-action@main
```

## Inputs

| Variable Name | Required | Default | Description |
| ------------- | -------- | ------------------------------- | ------------------------------------------------ |
| path_prefix | False | '.' (current working directory) | Directory location containing project code |
| no_checkout | False | false | Don't perform a checkout of the local repository |

## Behaviour

### Pull Requests

When triggered against a pull request, will audit the change content for any
calls to GitHub actions/workflows that are not pinned to a SHA commit value.
This scans files changed in the pull request, and will NOT block merges
where GitHub actions elsewhere in the repository do not use SHA/commit values.

### Manual Invocation

Operates differently when explicitly called using "workflow_dispatch" trigger.
Will scan the entire repository for action/workflow calls and report results
for all GitHub actions/workflows found.