Update codeql-analysis.yml #169
Workflow file for this run
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 | |
on: | |
push: | |
paths: | |
- ".github/workflows/**" | |
pull_request: | |
paths: | |
- ".github/workflows/**" | |
jobs: | |
enforce_pinned_workflows: | |
name: Harden Security | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Ensure 3rd party workflows have SHA pinned | |
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@6ca5574367befbc9efdb2fa25978084159c5902d # v1.3.0 | |
with: | |
# Trusted GitHub Actions and/or organizations | |
allowlist: | | |
aws-actions/ | |
actions/checkout | |
actions/github-script | |
actions/setup-dotnet | |
actions/setup-python | |
actions/upload-artifact | |
actions/download-artifact | |
github/codeql-action/init | |
github/codeql-action/analyze | |
dependabot/fetch-metadata |