Skip to content

use github action to avoid downloadThenRun scorecard warning #906

use github action to avoid downloadThenRun scorecard warning

use github action to avoid downloadThenRun scorecard warning #906

Workflow file for this run

name: gitleaks
on:
pull_request: {}
push:
branches: [master, v3.dev]
permissions: read-all
env:
ALLOWED_ENDPOINTS: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: ${{ env.ALLOWED_ENDPOINTS }}
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Run gitleaks
uses: gitleaks/gitleaks-action@44c470ffc35caa8b1eb3e8012ca53c2f9bea4eb5 # v2.3.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}