Skip to content

Update fossid_integration_stateless_diffscan_target_repo.yml#50

Merged
sbarre01 merged 3 commits into
feature/fossid-wflow-dispatchfrom
sbarre01-patch-2
Jun 25, 2026
Merged

Update fossid_integration_stateless_diffscan_target_repo.yml#50
sbarre01 merged 3 commits into
feature/fossid-wflow-dispatchfrom
sbarre01-patch-2

Conversation

@sbarre01

Copy link
Copy Markdown
Contributor

No description provided.

@sbarre01 sbarre01 requested a review from a team as a code owner June 18, 2026 11:21
Copilot AI review requested due to automatic review settings June 18, 2026 11:21
Copilot stopped reviewing on behalf of sbarre01 due to an error June 18, 2026 11:42

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Fossid stateless diff scan GitHub Action to support both automatic scanning for internal PRs and manual scanning (including fork PRs) via workflow dispatch.

Changes:

  • Add workflow_dispatch trigger with a pr_number input to manually scan any PR.
  • Split workflow into an internal PR path and a manual-dispatch path that resolves PR refs before invoking the reusable Fossid workflow.
  • Pin the reusable workflow reference to @1.0.0 instead of a moving branch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/fossid_integration_stateless_diffscan_target_repo.yml Outdated
Comment thread .github/workflows/fossid_integration_stateless_diffscan_target_repo.yml Outdated
Copilot AI review requested due to automatic review settings June 25, 2026 10:24

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (1)

.github/workflows/fossid_integration_stateless_diffscan_target_repo.yml:64

  • secrets: mapping entries are indented more than necessary, and inconsistent with other workflows in this repo (e.g., .github/workflows/auto_merge_manifest_pr_caller.yml). While valid YAML, normalizing indentation improves readability and reduces the chance of accidental nesting errors during future edits.
    secrets:
        FOSSID_CONTAINER_USERNAME: ${{ secrets.FOSSID_CONTAINER_USERNAME }}
        FOSSID_CONTAINER_PASSWORD: ${{ secrets.FOSSID_CONTAINER_PASSWORD }}
        FOSSID_HOST_USERNAME: ${{ secrets.FOSSID_HOST_USERNAME }}
        FOSSID_HOST_TOKEN: ${{ secrets.FOSSID_HOST_TOKEN }}

Comment on lines +55 to +59
uses: rdkcentral/build_tools_workflows/.github/workflows/fossid_integration_stateless_diffscan.yml@1.0.0
with:
base_ref: ${{ needs.resolve-pr-refs.outputs.base_ref }}
compare_ref: ${{ needs.resolve-pr-refs.outputs.head_sha }}
pr_number: ${{ github.event.inputs.pr_number }}
Comment on lines 4 to +6
pull_request:
branches:
- develop
types: [opened, synchronize, reopened]
workflow_dispatch: # NEW: manual trigger
Comment thread .github/workflows/fossid_integration_stateless_diffscan_target_repo.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 25, 2026 10:28

Copilot AI 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.

Pull request overview

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

Comments suppressed due to low confidence (1)

.github/workflows/fossid_integration_stateless_diffscan_target_repo.yml:64

  • The secrets mapping under call-fossid-dispatch is over-indented compared to the rest of the file. YAML will parse it, but the inconsistent indentation makes the workflow harder to read and easier to mis-edit.
    secrets:
        FOSSID_CONTAINER_USERNAME: ${{ secrets.FOSSID_CONTAINER_USERNAME }}
        FOSSID_CONTAINER_PASSWORD: ${{ secrets.FOSSID_CONTAINER_PASSWORD }}
        FOSSID_HOST_USERNAME: ${{ secrets.FOSSID_HOST_USERNAME }}
        FOSSID_HOST_TOKEN: ${{ secrets.FOSSID_HOST_TOKEN }}

Comment on lines +55 to +59
uses: rdkcentral/build_tools_workflows/.github/workflows/fossid_integration_stateless_diffscan.yml@1.0.0
with:
base_ref: ${{ needs.resolve-pr-refs.outputs.base_ref }}
compare_ref: ${{ needs.resolve-pr-refs.outputs.head_sha }}
pr_number: ${{ github.event.inputs.pr_number }}
Comment on lines +42 to +43
const prNumber = parseInt(context.payload.inputs.pr_number, 10);
const { data: pr } = await github.rest.pulls.get({
@sbarre01 sbarre01 merged commit 696fa1c into feature/fossid-wflow-dispatch Jun 25, 2026
2 checks passed
@sbarre01 sbarre01 deleted the sbarre01-patch-2 branch June 25, 2026 10:30
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants