mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-23 00:41:36 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](de0fac2e45...df4cb1c069)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
60 lines
2.1 KiB
YAML
60 lines
2.1 KiB
YAML
name: Gitleaks
|
|
|
|
# Deterministic in-CI secret scanning. Defense-in-depth on top of GitHub's
|
|
# native secret-scanning push protection (which is a repo Settings toggle —
|
|
# see SECURITY.md for the recommended admin action).
|
|
#
|
|
# PR runs scan the diff (fast); main pushes scan full history.
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
gitleaks:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
with:
|
|
# Full history needed for the on-push full-history scan; on PRs the
|
|
# action diffs against the base ref so the cost is bounded by the PR.
|
|
fetch-depth: 0
|
|
# Don't bake the token into the cloned .git/config; downstream
|
|
# steps (and Gitleaks itself) don't need it for repo operations.
|
|
persist-credentials: false
|
|
|
|
# gitleaks-action builds `base^..head` for pull_request events; both SHAs
|
|
# must exist locally (fork PRs and shallow checkouts otherwise fail with
|
|
# "unknown revision" — see gitleaks/gitleaks-action#199).
|
|
- name: Fetch PR refs for gitleaks range
|
|
if: github.event_name == 'pull_request'
|
|
env:
|
|
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
run: |
|
|
git fetch --no-tags origin "$BASE_SHA"
|
|
git fetch --no-tags origin "$HEAD_SHA"
|
|
|
|
# No GITLEAKS_LICENSE secret is required for OSS / public-repo usage.
|
|
# If this repo becomes private, the action will require a license key.
|
|
- name: Gitleaks
|
|
uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2.3.9
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: true
|
|
GITLEAKS_ENABLE_SUMMARY: true
|