Skip to content

FoD: Implementation of fod action run gitlab-mr-comment and fod action run ado-pr-comment with similar behaviour to github-pr-comment.#1034

Closed
kadraman wants to merge 4 commits into
fortify:dev/v3.xfrom
kadraman:fod-gitlab-pr-summary
Closed

FoD: Implementation of fod action run gitlab-mr-comment and fod action run ado-pr-comment with similar behaviour to github-pr-comment.#1034
kadraman wants to merge 4 commits into
fortify:dev/v3.xfrom
kadraman:fod-gitlab-pr-summary

Conversation

@kadraman

@kadraman kadraman commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

As per title. I have used consistent name gitlab-pr-comment even though it is a MR in GitLab so fod action run ci should hopefully pick it up. There equivalent of GITHUB_TOKEN in GitLab is CI_JOB_TOKEN but this only has read permission to MRs so the user need to specifically create a GITLAB_TOKEN (or GITLAB_API_TOKEN) with permission for this to work.

An example of run:

image

No equivalent for SSC has been created yet.

Copilot AI review requested due to automatic review settings June 11, 2026 09:27

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 a new FoD CI action template that posts FoD vulnerability delta summaries as GitLab Merge Request comments/notes, mirroring the existing github-pr-comment behavior so fod action run ci can pick it up in GitLab CI contexts.

Changes:

  • Introduces new gitlab-pr-comment action YAML for posting MR notes via GitLab API.
  • Adds CLI options for GitLab API URL, token, project id, and MR IID with GitLab CI environment-variable defaults.
  • Implements issue delta rendering (new/re-introduced vs removed) and a --dryrun mode.

@kadraman kadraman changed the title Implementation of gitlab-pr-comment action with similar behaviour to github-pr-comment for FoD. FoD: Implementation of fod action run gitlab-pr-comment with similar behaviour to github-pr-comment. Jun 11, 2026
…ng `fcli action run ci`

- Added support for Azure DevOps PR comments with a new action `ado-pr-comment`.
- Introduced GitLab MR comments with a new action `gitlab-mr-comment`.
- Updated environment detection for Azure DevOps and GitLab to include PR comment action suffixes.
- Enhanced documentation for PR comment actions in `ci-doc.yaml` and respective action YAML files.
- Improved functional tests to verify PR comment actions for GitHub and GitLab.
@kadraman kadraman changed the title FoD: Implementation of fod action run gitlab-pr-comment with similar behaviour to github-pr-comment. FoD: Implementation of fod action run gitlab-mr-comment and fod action run ado-pr-comment with similar behaviour to github-pr-comment. Jun 18, 2026
@kadraman

Copy link
Copy Markdown
Contributor Author

Updated to include ado-pr-comment using same logic, tested using Azure DevOps self-hosted agent with results as follows:
image

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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.

@rsenden

rsenden commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Superseded by #1042

@rsenden rsenden closed this Jun 26, 2026
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.

3 participants