Skip to content

Fix Aquasec uses issues - #137

Merged
miroslavpojer merged 7 commits into
masterfrom
infra/-fix-aquasec-uses-isses
Jan 19, 2026
Merged

miroslavpojer merged 7 commits into
masterfrom
infra/-fix-aquasec-uses-isses

Conversation

@miroslavpojer

@miroslavpojer miroslavpojer commented Jan 19, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

Aquasec reports 3 issue related to integration tests. AVD-PIPELINE-0008

Release Notes

  • Fixes 3 AVD-PIPELINE-0008 "uses" issues reported by Aquasec.

Summary by CodeRabbit

  • Chores
    • Pinned CI tooling to a specific, stable reference and removed reliance on older generic versions for more predictable runs.
  • Tests
    • Standardized integration test execution to use environment-driven inputs, unified token handling, and consistent output reporting and verification.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Jan 19, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@miroslavpojer has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 48 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 27dc9ac and 6c7796c.

📒 Files selected for processing (1)
  • .github/workflows/integration_tests.yml

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Removed a duplicate setup-python step in check_pr_release_notes.yml and refactored integration_tests.yml to replace uses: ./ invocations with inline run blocks driven by INPUT_* environment variables, while consolidating GITHUB token handling and preserving output/listing and pytest verification steps.

Changes

Cohort / File(s) Summary
Python setup pinning
​.github/workflows/check_pr_release_notes.yml
Removed an actions/setup-python@v6 step and retained the pinned commit actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 with python-version: '3.13'.
Integration tests — inline execution
​.github/workflows/integration_tests.yml
Replaced uses: ./ action invocations with inline run blocks that set INPUT_SOURCE, INPUT_RELEASE, INPUT_STRUCTURED_OUTPUT, INPUT_REPORT_PAGE, INPUT_VERBOSE_LOGGING via env and run python main.py; export output-path to GITHUB_OUTPUT and list outputs.
Integration tests — token handling
​.github/workflows/integration_tests.yml
Moved token handling into with: GITHUB-TOKEN for collector steps and added GITHUB-TOKEN under with for all collector steps; note one env instance uses GITHUB_TOKEN (underscore) while others use GITHUB-TOKEN (dash).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

infrastructure

Suggested reviewers

  • tmikula-dev
  • Zejnilovic

Poem

🐇 I nibbled on YAML by lantern light,
Pinned a step, made runners run just right.
Env-vars whisper, outputs come to play,
CI carrots gleam at the break of day. 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Fix Aquasec uses issues' is specific and relates to the main change in the changeset, which involves fixing issues reported by Aquasec security scanning.
Description check ✅ Passed The description includes Overview and Release Notes sections matching the template, though the Related section with issue number is missing.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@miroslavpojer miroslavpojer self-assigned this Jan 19, 2026
@miroslavpojer
miroslavpojer requested a review from Copilot January 19, 2026 13:31

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

This PR addresses security issues flagged by Aquasec scanner (AVD-PIPELINE-0008) related to unpinned action versions and improves the stability of integration tests.

Changes:

  • Pins the actions/setup-python action to a specific commit SHA for security
  • Converts integration test steps from using composite actions (uses: ./) to direct Python script execution via run: commands
  • Standardizes environment variable naming convention (INPUT_* prefix) for test configuration

Reviewed changes

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

File Description
.github/workflows/check_pr_release_notes.yml Removes duplicate unpinned action reference, keeping only the pinned version
.github/workflows/integration_tests.yml Converts three integration test steps to use direct script execution instead of composite actions, and adds GITHUB-TOKEN to env/with blocks

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

env:
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}
with:
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

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

The GITHUB-TOKEN is now duplicated in both the env block (line 33) and the with block (line 35). This duplication is unnecessary and could cause confusion. Remove the duplicate entry from the with block.

Suggested change
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 27dc9ac.

env:
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}
with:
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

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

The GITHUB-TOKEN is now duplicated in both the env block (line 90) and the with block (line 92). This duplication is unnecessary and could cause confusion. Remove the duplicate entry from the with block.

Suggested change
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 27dc9ac.

env:
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}
with:
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

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

The GITHUB-TOKEN is now duplicated in both the env block (line 148) and the with block (line 150). This duplication is unnecessary and could cause confusion. Remove the duplicate entry from the with block.

Suggested change
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 27dc9ac.

source: "${{ steps.collect_data_with_project_1.outputs.output-path }}/doc-issues/doc-issues.json"
report-page: true
verbose-logging: true
GITHUB_TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

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

Inconsistent environment variable naming: this uses GITHUB_TOKEN while the previous test step uses GITHUB-TOKEN (with hyphen). Standardize to use the same naming convention across all integration test steps.

Suggested change
GITHUB_TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is valid for this usage.

source: "${{ steps.collect_data_with_project_2.outputs.output-path }}/doc-issues/doc-issues.json"
report-page: true
verbose-logging: true
GITHUB_TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

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

Inconsistent environment variable naming: this uses GITHUB_TOKEN while the first test step uses GITHUB-TOKEN (with hyphen). Standardize to use the same naming convention across all integration test steps.

Suggested change
GITHUB_TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}
GITHUB-TOKEN: ${{ secrets.REPOSITORIES_TOKEN }}

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is valid for this usage.

@miroslavpojer
miroslavpojer merged commit d2b86fb into master Jan 19, 2026
10 checks passed
@miroslavpojer
miroslavpojer deleted the infra/-fix-aquasec-uses-isses branch January 19, 2026 13:54
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.

2 participants