Skip to content

Commit

Permalink
Merge pull request #456 from step-security-bot/stepsecurity_remediati…
Browse files Browse the repository at this point in the history
…on_1703157592

[StepSecurity] Apply security best practices
  • Loading branch information
konstruktoid authored Dec 21, 2023
2 parents b886d63 + 299e1a4 commit 9b38aa4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required,
# PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit

- name: 'Checkout Repository'
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: 'Dependency Review'
uses: actions/dependency-review-action@0efb1d1d84fc9633afcdaad14c485cbbc90ef46c # v2.5.1
5 changes: 5 additions & 0 deletions .github/workflows/slsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
with:
egress-policy: audit

- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit

- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
shell: bash

Expand Down
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/gitleaks/gitleaks

Check failure on line 2 in .pre-commit-config.yaml

View workflow job for this annotation

GitHub Actions / build

yaml[indentation]

Wrong indentation: expected at least 1
rev: v8.16.3
hooks:
- id: gitleaks

Check failure on line 5 in .pre-commit-config.yaml

View workflow job for this annotation

GitHub Actions / build

yaml[indentation]

Wrong indentation: expected at least 3
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck

Check failure on line 9 in .pre-commit-config.yaml

View workflow job for this annotation

GitHub Actions / build

yaml[indentation]

Wrong indentation: expected at least 3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer

Check failure on line 13 in .pre-commit-config.yaml

View workflow job for this annotation

GitHub Actions / build

yaml[indentation]

Wrong indentation: expected at least 3
- id: trailing-whitespace

0 comments on commit 9b38aa4

Please sign in to comment.