Skip to content

Create bearer.yml#100

Merged
LCSOGthb merged 3 commits into
mainfrom
LCSOGthb-patch-1
Apr 18, 2026
Merged

Create bearer.yml#100
LCSOGthb merged 3 commits into
mainfrom
LCSOGthb-patch-1

Conversation

@LCSOGthb
Copy link
Copy Markdown
Owner

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tools Ready Ready Preview, Comment Apr 18, 2026 0:52am

@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Add Bearer security scanning GitHub workflow

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Add Bearer security scanning workflow for code analysis
• Scan on push, pull requests, and weekly schedule
• Upload SARIF results to GitHub security dashboard
Diagram
flowchart LR
  A["Code Push/PR/Schedule"] --> B["Checkout Code"]
  B --> C["Run Bearer CLI Scan"]
  C --> D["Generate SARIF Report"]
  D --> E["Upload to GitHub Security"]
Loading

Grey Divider

File Changes

1. .github/workflows/bearer.yml ⚙️ Configuration changes +43/-0

Add Bearer security scanning workflow

• Create new GitHub Actions workflow for Bearer security scanning
• Configure triggers for push to main, pull requests, and weekly schedule
• Set up Bearer CLI action with SARIF output format
• Upload generated SARIF results to GitHub security events

.github/workflows/bearer.yml


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Apr 18, 2026

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Remediation recommended

1. Unpinned upload-sarif action 🐞 Bug ⛨ Security
Description
The workflow uses github/codeql-action/upload-sarif@v3 (a moving tag) instead of pinning to a commit
SHA, so the SARIF upload step can change unexpectedly. This creates avoidable supply-chain risk and
reduces reproducibility of security reporting.
Code

.github/workflows/bearer.yml[R40-42]

+      - name: Upload SARIF file
+        uses: github/codeql-action/upload-sarif@v3
+        with:
Evidence
The workflow references github/codeql-action/upload-sarif@v3 by tag. In the same repo, other
workflows pin actions by commit SHA (e.g., scorecard.yml pins multiple actions), showing that
immutable pinning is a practiced standard here and this workflow is inconsistent with it.

.github/workflows/bearer.yml[39-43]
.github/workflows/scorecard.yml[64-71]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`.github/workflows/bearer.yml` uses `github/codeql-action/upload-sarif@v3` (a moving tag). Pin to a full commit SHA to avoid unexpected changes in what runs.

### Issue Context
This workflow already pins `bearer/bearer-action` to a commit SHA, so pinning the remaining actions completes the supply-chain hardening.

### Fix Focus Areas
- .github/workflows/bearer.yml[40-42]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 18, 2026

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 2 package(s) with unknown licenses.
See the Details below.

License Issues

.github/workflows/codacy.yml

PackageVersionLicenseIssue Type
actions/checkout4.*.*NullUnknown License
github/codeql-action/upload-sarif3.*.*NullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
actions/actions/checkout 4.*.* 🟢 5.7
Details
CheckScoreReason
Maintained⚠️ 00 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Binary-Artifacts🟢 10no binaries found in the repo
Code-Review🟢 10all changesets reviewed
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Fuzzing⚠️ 0project is not fuzzed
Packaging⚠️ -1packaging workflow not detected
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Pinned-Dependencies🟢 3dependency not pinned by hash detected -- score normalized to 3
Security-Policy🟢 9security policy file detected
Branch-Protection🟢 5branch protection is not maximal on development and all release branches
SAST🟢 8SAST tool detected but not run on all commits
actions/codacy/codacy-analysis-cli-action d840f886c4bd4edc059706d09c6a1586111c540b 🟢 5.1
Details
CheckScoreReason
Binary-Artifacts🟢 10no binaries found in the repo
Maintained⚠️ 01 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Code-Review🟢 10all changesets reviewed
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Packaging⚠️ -1packaging workflow not detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Pinned-Dependencies🟢 10all dependencies are pinned
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Security-Policy⚠️ 0security policy file not detected
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Branch-Protection🟢 6branch protection is not maximal on development and all release branches
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
actions/github/codeql-action/upload-sarif 3.*.* UnknownUnknown

Scanned Files

  • .github/workflows/codacy.yml

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 18, 2026

Warning

Rate limit exceeded

@LCSOGthb has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 54 minutes and 48 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 54 minutes and 48 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: e9ceb3f7-28b8-4fba-a499-791b3e44546a

📥 Commits

Reviewing files that changed from the base of the PR and between 5f393e7 and ac383c9.

📒 Files selected for processing (1)
  • .github/workflows/codacy.yml
📝 Walkthrough

Walkthrough

A new GitHub Actions workflow file is added to enable automated security scanning with Bearer. The workflow triggers on pushes and pull requests to the main branch, and runs weekly on schedule. It executes Bearer CLI to generate SARIF security reports and uploads them to GitHub's security dashboard.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/bearer.yml
New Bearer security scanning workflow configured to run on push/PR to main and weekly schedule; executes Bearer CLI with SARIF output format and uploads results to GitHub security events.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested labels

enhancement

Poem

🐰 A sentinel now stands guard, watching code with care,
Bearer scans for secrets hiding everywhere,
Weekly vigils and each pull request reviewed,
Security woven through, a safety groove! 🔐

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Create bearer.yml' is vague and generic, using the pattern 'Create [filename]' without explaining what the file does or why it's needed. Consider a more descriptive title like 'Add Bearer security scanning workflow' that explains the purpose and benefit of the change.
Description check ❓ Inconclusive No pull request description was provided by the author, making it impossible to assess whether the author's intent is clearly communicated. Add a description explaining the purpose of the Bearer workflow, when it runs, and what security scanning it provides.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch LCSOGthb-patch-1
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch LCSOGthb-patch-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-advanced-security
Copy link
Copy Markdown
Contributor

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@cloudflare-workers-and-pages
Copy link
Copy Markdown
Contributor

cloudflare-workers-and-pages Bot commented Apr 18, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
tools ac383c9 Apr 18 2026, 12:56 AM

@deepsource-io
Copy link
Copy Markdown
Contributor

deepsource-io Bot commented Apr 18, 2026

DeepSource Code Review

We reviewed changes in 8d0c6c5...ac383c9 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Scala Apr 18, 2026 12:53a.m. Review ↗
Swift Apr 18, 2026 12:53a.m. Review ↗
JavaScript Apr 18, 2026 12:53a.m. Review ↗
Ruby Apr 18, 2026 12:53a.m. Review ↗
C & C++ Apr 18, 2026 12:53a.m. Review ↗
C# Apr 18, 2026 12:53a.m. Review ↗
Rust Apr 18, 2026 12:53a.m. Review ↗
Shell Apr 18, 2026 12:53a.m. Review ↗
Terraform Apr 18, 2026 12:53a.m. Review ↗
Code coverage Apr 18, 2026 12:53a.m. Review ↗
SQL Apr 18, 2026 12:53a.m. Review ↗
Secrets Apr 18, 2026 12:53a.m. Review ↗
Ansible Apr 18, 2026 12:53a.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@coderabbitai coderabbitai Bot added the enhancement New feature or request label Apr 18, 2026
Copy link
Copy Markdown

@codethreat-appsec codethreat-appsec Bot left a comment

Choose a reason for hiding this comment

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

Summary

Adds a new GitHub Actions workflow to run Bearer security scanning on the repository and upload SARIF results to GitHub’s security tab.

Features

  • Bearer security scan workflow: Introduces .github/workflows/bearer.yml that runs on pushes, pull requests to main, and a weekly cron schedule.
  • SARIF reporting: Generates a results.sarif report using bearer/bearer-action and uploads it via github/codeql-action/upload-sarif for centralized security findings.

Bug Fixes

[None]

Breaking Changes

[None]

Architecture Diagram

sequenceDiagram
    participant Dev as Developer
    participant GitHub as GitHub Actions
    participant Bearer as Bearer Action
    participant SecTab as GitHub Security Tab

    Dev->>GitHub: Push/PR to main or scheduled run
    GitHub->>GitHub: Run Bearer workflow
    GitHub->>Bearer: Execute bearer/bearer-action (scan repo)
    Bearer-->>GitHub: Generate results.sarif
    GitHub->>SecTab: Upload results.sarif via upload-sarif
Loading

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 18, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/bearer.yml:
- Line 12: The branches array contains an extra trailing space in the string
literal ["main" ] which YAMLlint flags; update the branches declaration (the
branches: ["main" ] entry) to remove the trailing space so it becomes ["main"]
for consistent formatting.
- Around line 40-43: The "Upload SARIF file" GitHub Actions step currently runs
only on the default success flow, so if the Bearer scan step fails the SARIF
won't be uploaded; update the step named "Upload SARIF file" (the job step using
github/codeql-action/upload-sarif@v3 with sarif_file: results.sarif) to include
if: always() so it executes regardless of previous step failures and still
uploads the produced results.sarif; ensure the SARIF-producing step still writes
results.sarif so the uploader has the file to send.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1dbb6a7b-1118-43e5-8e73-c90057618479

📥 Commits

Reviewing files that changed from the base of the PR and between ee307f2 and 5f393e7.

📒 Files selected for processing (1)
  • .github/workflows/bearer.yml
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: Seer Code Review
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: SonarQube
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Analyze (actions)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Workers Builds: tools
🧰 Additional context used
🪛 YAMLlint (1.38.0)
.github/workflows/bearer.yml

[warning] 10-10: truthy value should be one of [false, true]

(truthy)


[error] 12-12: too many spaces inside brackets

(brackets)


on:
push:
branches: ["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.

⚠️ Potential issue | 🟡 Minor

Nit: extra space inside brackets.

YAMLlint flags ["main" ] on line 12. Remove the trailing space for consistency with line 15.

✏️ Proposed fix
-    branches: ["main" ]
+    branches: ["main"]
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
branches: ["main" ]
branches: ["main"]
🧰 Tools
🪛 YAMLlint (1.38.0)

[error] 12-12: too many spaces inside brackets

(brackets)

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

In @.github/workflows/bearer.yml at line 12, The branches array contains an
extra trailing space in the string literal ["main" ] which YAMLlint flags;
update the branches declaration (the branches: ["main" ] entry) to remove the
trailing space so it becomes ["main"] for consistent formatting.

Comment on lines +40 to +43
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Consider if: always() on the SARIF upload step.

If the Bearer scan step ever fails (e.g., transient action error, future change to exit-code), the upload step will be skipped and findings won't reach the Security tab. Adding if: always() ensures results are uploaded whenever the SARIF file was produced.

♻️ Proposed refactor
       - name: Upload SARIF file
+        if: always()
         uses: github/codeql-action/upload-sarif@v3
         with:
           sarif_file: results.sarif
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
- name: Upload SARIF file
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/bearer.yml around lines 40 - 43, The "Upload SARIF file"
GitHub Actions step currently runs only on the default success flow, so if the
Bearer scan step fails the SARIF won't be uploaded; update the step named
"Upload SARIF file" (the job step using github/codeql-action/upload-sarif@v3
with sarif_file: results.sarif) to include if: always() so it executes
regardless of previous step failures and still uploads the produced
results.sarif; ensure the SARIF-producing step still writes results.sarif so the
uploader has the file to send.

@qltysh
Copy link
Copy Markdown

qltysh Bot commented Apr 18, 2026

❌ 2 blocking issues (2 total)

Tool Category Rule Count
zizmor Vulnerability credential persistence through GitHub Actions artifacts 2

runs-on: ubuntu-latest
steps:
# Checkout project source
- uses: actions/checkout@v4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

credential persistence through GitHub Actions artifacts [zizmor:zizmor/artipacked]

Copy link
Copy Markdown

@codethreat-appsec codethreat-appsec Bot left a comment

Choose a reason for hiding this comment

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

Summary

Adds a new GitHub Actions workflow (.github/workflows/bearer.yml) to run Bearer security scanning on the repository and upload results to GitHub as SARIF.

Features

  • Bearer security scan workflow:
    • Triggers on pushes and pull requests to main, and on a weekly cron schedule.
    • Checks out the repository and runs bearer/bearer-action pinned to a specific commit.
    • Uses secrets.BEARER_TOKEN to authenticate with Bearer.
    • Generates a results.sarif report and uploads it via github/codeql-action/upload-sarif@v3 to GitHub Security.

Bug Fixes

[None]

Breaking Changes

[None]

Architecture Diagram

sequenceDiagram
    participant Dev as Developer
    participant GitHub as GitHub Actions
    participant Bearer as Bearer Action
    participant SecCenter as GitHub Security Center

    Dev->>GitHub: Push/PR to main or scheduled run
    GitHub->>GitHub: Run Bearer workflow
    GitHub->>Bearer: Execute bearer/bearer-action with repo code
    Bearer-->>GitHub: Generate results.sarif
    GitHub->>SecCenter: Upload SARIF via codeql-action/upload-sarif
    SecCenter-->>Dev: Display security findings in Security tab
Loading

# Checkout the repository to the GitHub Actions runner
- name: Checkout code
uses: actions/checkout@v4

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

credential persistence through GitHub Actions artifacts [zizmor:zizmor/artipacked]

@sonarqubecloud
Copy link
Copy Markdown

@LCSOGthb LCSOGthb merged commit 93c425d into main Apr 18, 2026
32 of 44 checks passed
@LCSOGthb LCSOGthb deleted the LCSOGthb-patch-1 branch April 18, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants