VSCode How To Connect #5
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: Gitleaks scan | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
# Explicitly set permissions, following the principle of least privilege | |
actions: read | |
checks: write | |
pull-requests: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: gitleaks | |
uses: gitleaks/[email protected] | |
env: | |
# GitHub Token automatically created on run | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |