Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request_review_comment:
types: [created]

permissions: {}

jobs:
claude:
if: >-
Expand All @@ -31,4 +33,4 @@ jobs:
- name: Run Claude Code
uses: anthropics/claude-code-action@094bd24d575e7b30ac1576024817bf1a97c81262 # v1
with:
anthropic_api_key: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CodeQL

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
Comment thread
don-petry marked this conversation as resolved.
- cron: '17 4 * * 1'

permissions: {}

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
strategy:
fail-fast: false
matrix:
language: ['actions']
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Initialize CodeQL
uses: github/codeql-action/init@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # v3
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # v3
with:
category: '/language:${{ matrix.language }}'
11 changes: 6 additions & 5 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@ on:
branches:
- main

permissions:
contents: write
pull-requests: write
permissions: {}

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
permissions:
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
uses: dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36 # v2
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

- name: Generate app token
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.dependency-type == 'indirect'
id: app-token
uses: actions/create-github-app-token@v3
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: SonarCloud Analysis
permissions:
contents: read
pull-requests: read

permissions: {}

on:
push:
branches: [main]
Expand All @@ -11,6 +11,9 @@ jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
steps:
Expand Down
22 changes: 22 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Security Policy

## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| latest | :white_check_mark: |

## Reporting a Vulnerability

If you discover a security vulnerability in this project, please report it responsibly.

**Please do NOT open a public GitHub issue for security vulnerabilities.**

Instead, please send an email to **security@petry-projects.dev** or use
[GitHub's private vulnerability reporting](../../security/advisories/new).
Comment on lines +15 to +16

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Use an absolute GitHub advisories URL to avoid broken reporting flow.

../../security/advisories/new is a fragile relative path for a security-reporting entry point. Please use the full repo URL (for example, https://github.com/petry-projects/markets/security/advisories/new) so reporters always land on the correct private reporting page.

As per coding guidelines, “Focus on Markdown best practices, clear and consistent formatting, correct link references, and accurate technical documentation. Flag broken links, inconsistent heading levels, and unclear instructions.”

🧰 Tools
🪛 LanguageTool

[style] ~15-~15: Consider using “email”.
Context: ...ity vulnerabilities.** Instead, please send an email to security@petry-projects.dev or use ...

(SEND_AN_EMAIL)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@SECURITY.md` around lines 15 - 16, Replace the fragile relative advisories
link with the repository's absolute GitHub security advisories URL: change the
relative path "[GitHub's private vulnerability
reporting](../../security/advisories/new)" in SECURITY.md to the full URL
"https://github.com/petry-projects/markets/security/advisories/new" so reporters
always reach the correct private reporting page; keep the email address intact
and ensure the Markdown link text remains unchanged.


We will acknowledge receipt within 72 hours and aim to provide a fix or mitigation plan within 30 days.

## Disclosure Policy

We follow coordinated disclosure. We ask that you give us a reasonable amount of time to address the issue before making any information public.
Loading