Skip to content

Conversation

@hwakabh
Copy link
Owner

@hwakabh hwakabh commented Apr 17, 2025

Issue/PR link

N/A

For suppressing the following warnings in Workflow Runs, updated workflow triggers.
Screenshot 2025-04-17 at 22 16 29

Also though we have not concluded this is also triggered the tool's configuration error on Security Tools, will check the issue has been resolved or not by this changes.

Screenshot 2025-04-17 at 22 18 22

What does this PR do?

Describe what changes you make in your branch:
SSIA

(Optional) Additional Contexts

Describe additional information for reviewers (i.e. What does not included)

  • e2e testings are not included in this PR, since this requires merge into main to confirm changes would be applied

Summary by CodeRabbit

  • Chores
    • Updated the CodeQL workflow to run on all push events instead of pull requests. Manual workflow runs remain available.

@coderabbitai
Copy link

coderabbitai bot commented Apr 17, 2025

Walkthrough

The GitHub Actions workflow for CodeQL analysis was updated to change its trigger conditions. The workflow now runs on push events to any branch instead of on pull request events. The manual trigger via workflow_dispatch remains unchanged. No modifications were made to the job steps or configuration beyond the trigger settings.

Changes

File(s) Change Summary
.github/workflows/codeql.yaml Modified workflow triggers: removed pull_request, added push on all branches; no other changes.

Possibly related PRs

  • feat: enabled CodeQL #492: Introduces the initial CodeQL workflow and configuration, which the current PR directly builds upon by modifying its trigger conditions.

Suggested labels

ci

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added ci Topics on workflows or automations deploy Features depending on application runtimes labels Apr 17, 2025
@hwakabh
Copy link
Owner Author

hwakabh commented Apr 17, 2025

Seems the errors have been cleared with the changes in this PR, will merge this PR into main.
https://github.com/hwakabh/hwakabh.github.io/actions/runs/14516550076

@hwakabh hwakabh added the security Changes with security perspectives label Apr 17, 2025
Copy link

@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: 1

🧹 Nitpick comments (1)
.github/workflows/codeql.yaml (1)

4-6: Consider narrowing the branch filter to optimize CI resources.

Using a global glob ('**') runs scans on every branch push, potentially consuming excessive minutes and generating duplicate alerts. If code scanning is only needed on primary or protected branches, restrict the patterns accordingly:

-on:
-  push:
-    branches:
-    - '**'
+on:
+  push:
+    branches:
+      - main
+      - release/*
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0e0e408 and b586118.

📒 Files selected for processing (1)
  • .github/workflows/codeql.yaml (1 hunks)
🔇 Additional comments (1)
.github/workflows/codeql.yaml (1)

7-7: Approve manual dispatch trigger.

The workflow_dispatch entry is unchanged and correctly allows manual execution of CodeQL analysis.

Comment on lines 3 to 7
on:
pull_request:
push:
branches:
- '**'
workflow_dispatch:
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Critical: Verify PR scanning coverage after trigger changes.

By removing the pull_request event, you’ve disabled CodeQL scans on PRs, which prevents early security feedback for contributors. If you still need scanning during pull requests, re-add the trigger. For example:

on:
  push:
    branches:
      - '**'
  pull_request:
    branches:
      - '**'
  workflow_dispatch:

🏁 Script executed:

#!/bin/bash
# Display the first 20 lines of the CodeQL workflow to verify configured triggers
sed -n '1,20p' .github/workflows/codeql.yaml

Length of output: 302


Add pull_request trigger to .github/workflows/codeql.yaml

You’ve removed the pull_request event, which means CodeQL will only run on pushes and manual dispatches—PRs won’t be scanned automatically. To restore early security feedback on pull requests, update your workflow’s triggers:

 on:
   push:
     branches:
       - '**'
+  pull_request:
+    branches:
+      - '**'
   workflow_dispatch:

• File: .github/workflows/codeql.yaml (lines 2–6)
• Include the pull_request block to ensure scans run on PRs as well.

📝 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
on:
pull_request:
push:
branches:
- '**'
workflow_dispatch:
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:

@hwakabh hwakabh merged commit 033a217 into main Apr 17, 2025
7 checks passed
@hwakabh hwakabh deleted the ci/fix-codeql-error branch April 17, 2025 13:23
@hwakabh
Copy link
Owner Author

hwakabh commented Apr 17, 2025

After the merge of this PR, the issue has been cleared, and all the tooling configuration has been done properly.
Note that we did removed previous configurations, which were configured in UI, since it was duplicated the new tooling configurations, which is created the changes of this PR.

Screenshot 2025-04-17 at 22 28 35

hwakabh added a commit that referenced this pull request Apr 17, 2025
* build(deps-dev): bump vite in /web-frontend in the non-majors group (#593)

Bumps the non-majors group in /web-frontend with 1 update: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `vite` from 6.2.6 to 6.3.0
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.3.0/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: non-majors
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump hwakabh/semantic-issue-action in the non-majors group (#594)

Bumps the non-majors group with 1 update: [hwakabh/semantic-issue-action](https://github.com/hwakabh/semantic-issue-action).


Updates `hwakabh/semantic-issue-action` from 0.5.4 to 0.5.5
- [Release notes](https://github.com/hwakabh/semantic-issue-action/releases)
- [Changelog](https://github.com/hwakabh/semantic-issue-action/blob/main/CHANGELOG.md)
- [Commits](hwakabh/semantic-issue-action@v0.5.4...v0.5.5)

---
updated-dependencies:
- dependency-name: hwakabh/semantic-issue-action
  dependency-version: 0.5.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: non-majors
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: removed unused assets from code bases. (#596)

* ci: replaced workflow triggers. (#598)

* security: fixed warnings by CodeQL (#599)

* chore: fixed semicolon insertion error.

* chore: fixed unused imports error.

* chore(ui): updated career histories.

* chore: fixed log injection error with removing lines.

* chore: removed Rapid API related since it was not used any more.

* fix(api): updated endpoint for health checking with Cloud Run.

* chore: removed completed TODO from codes.

* chore: updated swagger docs description.

* chore: updated swagger docs.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Topics on workflows or automations deploy Features depending on application runtimes security Changes with security perspectives

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants