Skip to content

Commit

Permalink
Apply security best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
step-security-bot committed Dec 10, 2024
1 parent 53c14a3 commit ee952c1
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
22 changes: 22 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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: 'Checkout Repository'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
6 changes: 6 additions & 0 deletions .github/workflows/issues-close-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ on:
schedule:
- cron: "0 6 * * *"

permissions:
contents: read

jobs:
close-inactive-issues:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: close-issues
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/issues-find-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ on:
schedule:
- cron: "0 5 * * *"

permissions:
contents: read

jobs:
check-inactive:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: check-inactive
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/issues-notify-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ on:
issues:
types: [labeled]

permissions:
contents: read

jobs:
issue-labeled:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: Create comment
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/issues-remove-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ on:
issue_comment:
types: [created, edited]

permissions:
contents: read

jobs:
remove-inactive:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: remove inactive
Expand Down
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace

0 comments on commit ee952c1

Please sign in to comment.