Skip to content

使用 .clinerules 约束 Roo Code 的工作流程 #71

使用 .clinerules 约束 Roo Code 的工作流程

使用 .clinerules 约束 Roo Code 的工作流程 #71

Workflow file for this run

# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Lint
permissions: read-all
on:
push:
branches: [ "develop", "master", "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "develop", "master", "main" ]
jobs:
linter:
runs-on: ubuntu-24.04
permissions:
contents: read
issues: write
pull-requests: write
security-events: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Environment
if: github.base_ref != 'refs/heads/main'
run: |
echo "REPOSITORY_TRIVY_DISABLE_ERRORS=true" >> $GITHUB_ENV
echo "VALIDATE_ALL_CODEBASE=false" >> $GITHUB_ENV
- name: MegaLinter
uses: oxsecurity/megalinter@v8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MEGALINTER_CONFIG: .github/.mega-linter.yml
- name: Upload MegaLinter scan results to GitHub Security tab
if: success() || failure()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'megalinter-reports/megalinter-report.sarif'