chore: Split powertools-idempotency module to sub-modules #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lockdown untrusted workflows | |
# PROCESS | |
# | |
# 1. Scans for any external GitHub Action being used without version pinning (@<commit-sha> vs @v3) | |
# 2. Scans for insecure practices for inline bash scripts (shellcheck) | |
# 3. Fail CI and prevent PRs to be merged if any malpractice is found | |
# USAGE | |
# | |
# Always triggered on new PR, PR changes and PR merge. | |
on: | |
push: | |
paths: | |
- ".github/workflows/**" | |
pull_request: | |
paths: | |
- ".github/workflows/**" | |
jobs: | |
enforce_pinned_workflows: | |
name: Harden Security | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # checkout code and subsequently GitHub action workflows | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Ensure 3rd party workflows have SHA pinned | |
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@555a30da2656b4a7cf47b107800bef097723363e # v2.1.3 |