Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Close stale issues and PRs"
on:
workflow_dispatch:
schedule:
# Happen once per day at 1:30 AM
- cron: "30 1 * * *"

permissions:
issues: write
pull-requests: write

jobs:
sdk-close-stale:
uses: launchdarkly/gh-actions/.github/workflows/sdk-stale.yml@main
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reusable workflow pinned to branch, not commit SHA

Medium Severity

The reusable workflow reference launchdarkly/gh-actions/.github/workflows/sdk-stale.yml@main is pinned to a mutable branch instead of a commit SHA. Every other reference to launchdarkly/gh-actions in this repository is pinned to a specific commit hash (e.g., @2715574e..., @f1760cc5...). Pinning to @main means any change to that branch — including a compromise — would automatically execute in this repo's workflow with write permissions on issues and pull requests.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b7b3c5b. Configure here.

Loading