Skip to content
Closed
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
pull_request:
types: [opened, synchronize, reopened]
branches: [main, master, develop]
merge_group:
workflow_dispatch:

# Cancel in-progress runs for same PR/branch
Expand Down Expand Up @@ -95,11 +96,11 @@
run: uv python install ${{ matrix.python-version }}

- name: Install workspace dependencies
run: uv sync --all-extras

Check warning on line 99 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Ik&open=AaBnOH1gx_CexYKmW9Ik&pullRequest=56

Check warning on line 99 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Il&open=AaBnOH1gx_CexYKmW9Il&pullRequest=56

- name: Run tests with coverage
run: |
uv run pytest packages/cloudflare-auth/tests \

Check warning on line 103 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Im&open=AaBnOH1gx_CexYKmW9Im&pullRequest=56
--cov=packages/cloudflare-auth/src/cloudflare_auth \
--cov-report=xml:coverage-cloudflare-auth.xml \
--cov-report=term-missing \
Expand All @@ -108,10 +109,10 @@
-v

- name: Run type checker
run: uv run basedpyright packages/cloudflare-auth/src/

Check warning on line 112 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Io&open=AaBnOH1gx_CexYKmW9Io&pullRequest=56

Check warning on line 112 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9In&open=AaBnOH1gx_CexYKmW9In&pullRequest=56

- name: Run linter
run: uv run ruff check packages/cloudflare-auth/

Check warning on line 115 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Ip&open=AaBnOH1gx_CexYKmW9Ip&pullRequest=56

Check warning on line 115 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Iq&open=AaBnOH1gx_CexYKmW9Iq&pullRequest=56

- name: Upload coverage artifact
if: matrix.python-version == '3.12'
Expand Down Expand Up @@ -150,11 +151,11 @@
run: uv python install ${{ matrix.python-version }}

- name: Install workspace dependencies
run: uv sync --all-extras

Check warning on line 154 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Ir&open=AaBnOH1gx_CexYKmW9Ir&pullRequest=56

Check warning on line 154 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Is&open=AaBnOH1gx_CexYKmW9Is&pullRequest=56

- name: Run tests with coverage
run: |
uv run pytest packages/gcs-utilities/tests \

Check warning on line 158 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9It&open=AaBnOH1gx_CexYKmW9It&pullRequest=56
--cov=packages/gcs-utilities/src/gcs_utilities \
--cov-report=xml:coverage-gcs-utilities.xml \
--cov-report=term-missing \
Expand All @@ -163,10 +164,10 @@
-v

- name: Run type checker
run: uv run basedpyright packages/gcs-utilities/src/

Check warning on line 167 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Iv&open=AaBnOH1gx_CexYKmW9Iv&pullRequest=56

Check warning on line 167 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Iu&open=AaBnOH1gx_CexYKmW9Iu&pullRequest=56

- name: Run linter
run: uv run ruff check packages/gcs-utilities/

Check warning on line 170 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Iw&open=AaBnOH1gx_CexYKmW9Iw&pullRequest=56

Check warning on line 170 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Ix&open=AaBnOH1gx_CexYKmW9Ix&pullRequest=56

- name: Upload coverage artifact
if: matrix.python-version == '3.12'
Expand Down Expand Up @@ -201,11 +202,11 @@
run: uv python install 3.12

- name: Install dependencies
run: uv sync --all-extras

Check warning on line 205 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Iz&open=AaBnOH1gx_CexYKmW9Iz&pullRequest=56

Check warning on line 205 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9Iy&open=AaBnOH1gx_CexYKmW9Iy&pullRequest=56

- name: Run Bandit security scan
run: |
uv run bandit -r packages/cloudflare-auth/src/ packages/gcs-utilities/src/ -c pyproject.toml || true

Check warning on line 209 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9I1&open=AaBnOH1gx_CexYKmW9I1&pullRequest=56

Check warning on line 209 in .github/workflows/ci.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH1gx_CexYKmW9I0&open=AaBnOH1gx_CexYKmW9I0&pullRequest=56

# Upload combined coverage to Codecov
coverage:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- main
- master
- develop
merge_group:

# Cancel in-progress runs for same PR
concurrency:
Expand Down Expand Up @@ -72,12 +73,12 @@
run: uv python install 3.12

- name: Install dependencies
run: uv sync --all-extras

Check warning on line 76 in .github/workflows/pr-validation.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH4Wx_CexYKmW9I2&open=AaBnOH4Wx_CexYKmW9I2&pullRequest=56

Check warning on line 76 in .github/workflows/pr-validation.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH4Wx_CexYKmW9I3&open=AaBnOH4Wx_CexYKmW9I3&pullRequest=56

- name: Run vulture
run: |
echo "## Dead Code Report" >> $GITHUB_STEP_SUMMARY
uv run vulture src/ packages/ --min-confidence 90 | tee vulture-report.txt || true

Check warning on line 81 in .github/workflows/pr-validation.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH4Wx_CexYKmW9I5&open=AaBnOH4Wx_CexYKmW9I5&pullRequest=56

Check warning on line 81 in .github/workflows/pr-validation.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH4Wx_CexYKmW9I4&open=AaBnOH4Wx_CexYKmW9I4&pullRequest=56
if [ -s vulture-report.txt ]; then
echo '```' >> $GITHUB_STEP_SUMMARY
cat vulture-report.txt >> $GITHUB_STEP_SUMMARY
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
# does not match repository-root paths), leaving the required context pending
# forever and silently blocking the PR.
pull_request:
merge_group:
push:
branches:
- main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/security-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
branches: [main, master]
pull_request:
branches: [main, master]
merge_group:
schedule:
# Run security scans weekly on Monday at 9 AM UTC
- cron: '0 9 * * 1'
Expand Down Expand Up @@ -51,10 +52,10 @@
run: uv python install 3.12

- name: Install dependencies
run: uv sync --all-extras

Check warning on line 55 in .github/workflows/security-analysis.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH5tx_CexYKmW9I6&open=AaBnOH5tx_CexYKmW9I6&pullRequest=56

Check warning on line 55 in .github/workflows/security-analysis.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH5tx_CexYKmW9I7&open=AaBnOH5tx_CexYKmW9I7&pullRequest=56

- name: Run Bandit security scan
run: uv run bandit -r src/ -c pyproject.toml -f json -o bandit-report.json || true

Check warning on line 58 in .github/workflows/security-analysis.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH5tx_CexYKmW9I9&open=AaBnOH5tx_CexYKmW9I9&pullRequest=56

Check warning on line 58 in .github/workflows/security-analysis.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--no-build" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=ByronWilliamsCPA_python-libs&issues=AaBnOH5tx_CexYKmW9I8&open=AaBnOH5tx_CexYKmW9I8&pullRequest=56

- name: Run OSV-Scanner dependency scan
uses: google/osv-scanner-action/osv-scanner-action@9a498708959aeaef5ef730655706c5a1df1edbc2 # v2.3.8
Expand Down
Loading