Skip to content

Conversation

@ZePan110
Copy link
Collaborator

@ZePan110 ZePan110 commented May 20, 2025

Description

Fix security issues in workflows

Issues

List the issue or RFC link this PR is working on. If there is no such link, please mark it as n/a.

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

List the newly introduced 3rd party dependency if exists.

Tests

Weekly test all examples on multiple HWs: https://github.com/opea-project/GenAIExamples/actions/runs/15267959880

Signed-off-by: ZePan110 <[email protected]>
Copilot AI review requested due to automatic review settings May 20, 2025 07:27
@ZePan110 ZePan110 requested a review from chensuyue as a code owner May 20, 2025 07:27
@github-actions
Copy link

github-actions bot commented May 20, 2025

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR tightens workflow permissions by explicitly granting only read access to repository contents across all CI/CD workflows to address security issues.

  • Added a permissions: contents: read block to each workflow for least-privilege enforcement.
  • Removed any unsupported types: filter under push triggers.
  • Ensured uniform permission settings across scheduled, push, pull_request, and manual workflows.

Reviewed Changes

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

Show a summary per file
File Description
.github/workflows/weekly-example-test.yml Added minimal permissions: contents: read
.github/workflows/push-infra-issue-creation.yml Added minimal permissions: contents: read
.github/workflows/push-images-path-detection.yml Added minimal permissions: contents: read
.github/workflows/push-image-build.yml Added minimal permissions: contents: read
.github/workflows/pr-link-path-scan.yml Added minimal permissions: contents: read
.github/workflows/pr-dockerfile-path-and-build-yaml-scan.yml Added minimal permissions: contents: read
.github/workflows/pr-docker-compose-e2e.yml Added minimal permissions: contents: read
.github/workflows/pr-code-scan.yml Added minimal permissions: contents: read
.github/workflows/pr-check-duplicated-image.yml Added minimal permissions: contents: read
.github/workflows/pr-chart-e2e.yml Added minimal permissions: contents: read
.github/workflows/nightly-docker-build-publish.yml Added minimal permissions: contents: read
.github/workflows/mix-trellix.yml Added minimal permissions: contents: read
.github/workflows/manual-reset-local-registry.yml Added minimal permissions: contents: read
.github/workflows/manual-image-build.yml Added minimal permissions: contents: read
.github/workflows/manual-freeze-tag.yml Added minimal permissions: contents: read
.github/workflows/manual-docker-clean.yml Added minimal permissions: contents: read
.github/workflows/dockerhub-description.yml Added minimal permissions: contents: read
.github/workflows/_gmc-workflow.yml Added minimal permissions: contents: read
.github/workflows/_gmc-e2e.yml Added minimal permissions: contents: read

ZePan110 and others added 5 commits May 20, 2025 15:32
Signed-off-by: ZePan110 <[email protected]>
Signed-off-by: ZePan110 <[email protected]>
This reverts commit 2f9959f.
Signed-off-by: ZePan110 <[email protected]>
@ZePan110 ZePan110 force-pushed the Fix-sec branch 15 times, most recently from 383938c to 9911ae9 Compare May 27, 2025 06:13
Signed-off-by: ZePan110 <[email protected]>
Signed-off-by: ZePan110 <[email protected]>
@ZePan110 ZePan110 force-pushed the Fix-sec branch 2 times, most recently from 54ff8b5 to dfb41e9 Compare May 28, 2025 07:16
@ZePan110 ZePan110 force-pushed the Fix-sec branch 12 times, most recently from ea4b697 to 02c703e Compare May 29, 2025 01:51
ZePan110 added 2 commits May 29, 2025 09:52
Signed-off-by: ZePan110 <[email protected]>
Signed-off-by: ZePan110 <[email protected]>
@chensuyue chensuyue merged commit 49b1885 into main May 29, 2025
16 checks passed
@chensuyue chensuyue deleted the Fix-sec branch May 29, 2025 03:02
edlee123 pushed a commit to edlee123/GenAIExamples that referenced this pull request Jun 5, 2025
edlee123 pushed a commit to edlee123/GenAIExamples that referenced this pull request Jun 24, 2025
alexsin368 pushed a commit to alexsin368/GenAIExamples that referenced this pull request Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants