Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- Fixes

- Reporters
- Update Bitbucket pipeline generator template to trigger builds on pull requests from any branch, by @yermulnik in <https://github.com/oxsecurity/megalinter/pull/7421>

- Flavors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@
image: atlassian/default-image:5

pipelines:
default:
- parallel:
- step:
name: Run MegaLinter
image: <%= DOCKER_IMAGE_NAME %>:<%= DOCKER_IMAGE_VERSION %>
script:
# Disable LLM Advisor for bot PRs (dependabot, renovate, etc.)
# Note: Bitbucket has limited access to PR metadata, this is a basic check
- |
if [[ "$BITBUCKET_BRANCH" =~ ^(dependabot|renovate)/ ]] ||
[[ "$BITBUCKET_PR_TITLE" =~ ^(chore|fix|deps?|bump)(\(.*\))?: ]] ||
[[ "$BITBUCKET_STEP_TRIGGERER_UUID" =~ dependabot|renovate ]]; then
export LLM_ADVISOR_ENABLED=false
else
export LLM_ADVISOR_ENABLED=true
fi
- export DEFAULT_WORKSPACE=$BITBUCKET_CLONE_DIR && bash /entrypoint.sh
artifacts:
- megalinter-reports/**
pull-requests: # Note: Bitbucket PR comment reporting requires pull request context
"**": # Run on PRs for any branch (the source branch of the pull request)
- parallel:
- step:
name: Run MegaLinter
image: <%= DOCKER_IMAGE_NAME %>:<%= DOCKER_IMAGE_VERSION %>
script:
# Disable LLM Advisor for bot PRs (dependabot, renovate, etc.)
# Note: Bitbucket has limited access to PR metadata, this is a basic check
- |
if [[ "$BITBUCKET_BRANCH" =~ ^(dependabot|renovate)/ ]] ||
[[ "$BITBUCKET_PR_TITLE" =~ ^(chore|fix|deps?|bump)(\(.*\))?: ]] ||
[[ "$BITBUCKET_STEP_TRIGGERER_UUID" =~ dependabot|renovate ]]; then
export LLM_ADVISOR_ENABLED=false
else
export LLM_ADVISOR_ENABLED=true
fi
- export DEFAULT_WORKSPACE=$BITBUCKET_CLONE_DIR && bash /entrypoint.sh
artifacts:
- megalinter-reports/**
Loading