Skip to content

Commit

Permalink
Add more CI/CD workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ankandrew committed Nov 28, 2024
1 parent ce19b1e commit 61547c5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/close-inactive-issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Close inactive issues

on:
schedule:
- cron: "30 1 * * *" # Runs daily at 1:30 AM UTC

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 90 # The number of days old an issue can be before marking it stale
days-before-issue-close: 14 # The number of days to wait to close an issue after it being marked stale
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 90 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1 # Disables stale behavior for PRs
days-before-pr-close: -1 # Disables closing behavior for PRs
repo-token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/secret-scanning.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- main
pull_request:
branches:
- '**'

name: Secret Leaks
jobs:
trufflehog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main

0 comments on commit 61547c5

Please sign in to comment.