diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9cbb9b7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index e784c86..23dfa99 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -11,6 +11,9 @@ on: # random HH:MM to avoid a load spike on GitHub Actions at 00:00 - cron: 25 0 * * * name: Semgrep +permissions: + contents: read + jobs: semgrep: name: semgrep/ci @@ -20,5 +23,10 @@ jobs: container: image: returntocorp/semgrep steps: - - uses: actions/checkout@v4 + - name: Harden the runner (Audit all outbound calls) + uses: step-security/harden-runner@b09bb98e06d4d774595224525879c09bc6e98c40 # v2.20.1 + with: + egress-policy: audit + + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - run: semgrep ci