Skip to content

Include SAST and SCA - #173

Merged
daeisbae merged 7 commits into
mainfrom
issue-172-sast-sca
Aug 24, 2026
Merged

Include SAST and SCA#173
daeisbae merged 7 commits into
mainfrom
issue-172-sast-sca

Conversation

@daeisbae

Copy link
Copy Markdown
Contributor

This is a pull request to make sure the libraries and up to date so it's not vulnerable and codebase does not contain vulnerable coding pattern.

@daeisbae
daeisbae requested a review from jbriones1 August 23, 2026 22:59
@daeisbae daeisbae added the enhancement New feature or request label Aug 23, 2026
@github-advanced-security

Copy link
Copy Markdown

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.

@daeisbae

Copy link
Copy Markdown
Contributor Author

@jbriones1

image image

@jbriones1

Copy link
Copy Markdown
Contributor

Do you want to bump dependencies on this PR too or do it in a different PR. I think it's safe to bump packages now. The one SQL Injection thing probably just needs to use a SQLAlchemy function.

We should also lock workflows to only run the ones on main, not from the PR now

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds automated security maintenance and scanning to the repository by introducing a GitHub Actions workflow for SAST/SCA and enabling Dependabot updates for both Python (uv) dependencies and GitHub Actions.

Changes:

  • Add a scheduled/on-PR “Security” workflow that runs OpenGrep (SAST) and Trivy (SCA) and stores reports as CI artifacts.
  • Add Dependabot configuration for uv and github-actions ecosystems with weekly grouped updates.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/security.yml Introduces SAST (OpenGrep) and SCA (Trivy) CI jobs that run on PRs, main pushes, and a weekly schedule.
.github/dependabot.yml Enables weekly Dependabot updates for uv-managed Python dependencies and GitHub Actions versions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +51 to +58
- name: Upload Opengrep report
if: always()
uses: actions/upload-artifact@v7.0.1
with:
name: opengrep-sarif
path: reports/opengrep.sarif
if-no-files-found: error
retention-days: 14
Comment on lines +104 to +113
- name: Upload Trivy reports
if: always()
uses: actions/upload-artifact@v7.0.1
with:
name: trivy-reports
path: |
reports/trivy.sarif
reports/sbom.cdx.json
if-no-files-found: error
retention-days: 14
Comment on lines +33 to +37
curl --fail --location --silent --show-error \
"https://github.com/opengrep/opengrep/releases/download/${OPENGREP_VERSION}/opengrep_manylinux_x86" \
--output "$RUNNER_TEMP/opengrep"
chmod 0555 "$RUNNER_TEMP/opengrep"
"$RUNNER_TEMP/opengrep" --version
Comment on lines +12 to +13
permissions:
contents: read

@jbriones1 jbriones1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we need to pin commit SHAs if we're using scanning tools, just to ensure we're not vulnerable to compromised new versions.

branches:
- main
schedule:
- cron: "17 9 * * 1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Kind of a random time to scan, but I guess it doesn't really matter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh it's Monday 2 minutes after Opengrep work

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah supply chain exist, but pinning commit SHA will be hard for devs?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh it's Monday 2 minutes after Opengrep work

Wouldn't this run at at 9:17 AM UTC, not 9:00 AM America/Vancouver? Isn't this the cron job for Opengrep? I wasn't sure, because dependabot runs at 9:15AM America/Vancouver, but this runs UTC.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah supply chain exist, but pinning commit SHA will be hard for devs?

Yeah, I guess.

@github-project-automation github-project-automation Bot moved this to Changes Requested in W3 Projects Aug 23, 2026
daeisbae and others added 5 commits August 23, 2026 16:38
- removed `google-api-python-client` since we don't have Google
  integration, but module still remains
- bump FastAPI to 139.2
- mako: 1.3.11 -> 1.4.1
- starlette: 1.0.0 -> 1.6.0
@daeisbae
daeisbae merged commit 8ab1cfd into main Aug 24, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Changes Requested to Done in W3 Projects Aug 24, 2026
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

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants