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

permissions: read-all

Check warning on line 12 in .github/workflows/claude.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace "read-all" with specific permissions (e.g., "contents: read").

See more on https://sonarcloud.io/project/issues?id=petry-projects_markets&issues=AZ0xDClEPAYx8a-QBtsX&open=AZ0xDClEPAYx8a-QBtsX&pullRequest=20
Comment thread
don-petry marked this conversation as resolved.
Resolved

jobs:
claude:
if: >-
Expand Down
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.
Resolved
- cron: '17 4 * * 1'

permissions: read-all

Check warning on line 11 in .github/workflows/codeql.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace "read-all" with specific permissions (e.g., "contents: read").

See more on https://sonarcloud.io/project/issues?id=petry-projects_markets&issues=AZ0xDClfPAYx8a-QBtsZ&open=AZ0xDClfPAYx8a-QBtsZ&pullRequest=20

Comment thread
don-petry marked this conversation as resolved.
Resolved
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 @@
branches:
- main

permissions:
contents: write
pull-requests: write
permissions: read-all

Check warning on line 8 in .github/workflows/dependabot-automerge.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace "read-all" with specific permissions (e.g., "contents: read").

See more on https://sonarcloud.io/project/issues?id=petry-projects_markets&issues=AZ0xDClXPAYx8a-QBtsY&open=AZ0xDClXPAYx8a-QBtsY&pullRequest=20
Comment thread
don-petry marked this conversation as resolved.
Resolved

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: read-all

Check warning on line 3 in .github/workflows/sonarcloud.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace "read-all" with specific permissions (e.g., "contents: read").

See more on https://sonarcloud.io/project/issues?id=petry-projects_markets&issues=AZ0xDCiQPAYx8a-QBtsW&open=AZ0xDCiQPAYx8a-QBtsW&pullRequest=20
Comment thread
don-petry marked this conversation as resolved.
Resolved

on:
push:
branches: [main]
Expand All @@ -11,6 +11,9 @@
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 the repository maintainers or use
[GitHub's private vulnerability reporting](https://github.com/petry-projects/markets/security/advisories/new).

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