-
Notifications
You must be signed in to change notification settings - Fork 121
Adding a boilerplate security policy. #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
schneidergithub
wants to merge
2
commits into
webmachinelearning:main
Choose a base branch
from
schneidergithub:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Close inactive issues | ||
|
|
||
| on: | ||
| schedule: | ||
| # Cron is UTC | ||
| - cron: "15 6 * * *" | ||
| workflow_dispatch: {} | ||
|
|
||
| permissions: | ||
| issues: write | ||
|
|
||
| jobs: | ||
| stale: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Mark stale and close | ||
| uses: actions/stale@v10 | ||
| with: | ||
| repo-token: ${{ github.token }} | ||
|
|
||
| # "No activity for 28 days" -> mark stale at 21 days, | ||
| # then close 7 days after being marked stale | ||
| days-before-issue-stale: 21 | ||
| days-before-issue-close: 7 | ||
| days-before-pr-stale: -1 | ||
| days-before-pr-close: -1 | ||
|
|
||
| stale-issue-label: stale | ||
| close-issue-message: > | ||
| Closing due to 28 days of inactivity. If this is still relevant, | ||
| please comment to reopen. | ||
| stale-issue-message: > | ||
| No activity for 28 days. Closing automatically unless updated. | ||
|
|
||
| # Prevent closing important issues | ||
| exempt-issue-labels: "keep-open,pinned,security" | ||
| exempt-all-milestones: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Security Guidance | ||
|
|
||
| ## Sensitive Material Handling | ||
|
|
||
| - Do not commit secrets, passwords, API keys, tokens, certificates, private | ||
| keys, connection strings, or authentication artifacts. | ||
| - Do not commit production customer data, employee personal data, regulated | ||
| data, or incident details that are not explicitly approved for repository | ||
| storage. | ||
| - Use redaction and sanitization before adding evidence samples. Remove or mask | ||
| account names, email addresses, hostnames, IP addresses, tenant identifiers, ticket links, and any data that is not required to demonstrate the point. | ||
| - Prefer representative templates or scrubbed examples over live artifacts. | ||
|
|
||
| ## Evidence And Audit Integrity | ||
|
|
||
| - Never fabricate evidence, screenshots, approvals, test records, or audit | ||
| outcomes. | ||
| - Never alter evidence in a way that changes its substantive meaning. | ||
| - If a sample is redacted, note that it is sanitized or representative. | ||
| - Preserve references to owners, approvers, dates, and source systems when they | ||
| are needed for audit traceability. | ||
|
|
||
| ## Reporting Security Issues | ||
|
|
||
| If you identify a security weakness in repository content, proposed changes, or | ||
| automation: | ||
|
|
||
| - Do not publish sensitive exploit details in a public issue unless the repo | ||
| owner explicitly requests that workflow. | ||
| - Notify the designated repository owner, security contact, or maintainers | ||
| through the approved internal reporting path. | ||
schneidergithub marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - Include enough detail to reproduce and assess the issue without attaching | ||
| secrets or sensitive data. | ||
| - If the issue affects documented controls or evidence expectations, update the | ||
| relevant documentation only after maintainers confirm the correct handling. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.