-
Notifications
You must be signed in to change notification settings - Fork 2
Quality Gate #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: qg-2
Are you sure you want to change the base?
Quality Gate #6
Conversation
:wq Removed listeners and js executors duplicates :wq
TC mapping
# Conflicts: # browserstack.yml
TRA Quality Gates
Removed conditional check for sdk branch in workflow.
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout sdk branch | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: sdk | ||
|
|
||
| - name: Set up JDK 11 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: '11' | ||
| cache: maven | ||
|
|
||
| - name: Run Accessibility tests | ||
| run: mvn test -P scenario-onprem -B |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 days ago
To fix this problem, explicitly add a permissions block with minimal necessary privileges. Since the workflow only checks out code and runs Maven tests on the codebase, it does not need to write to the repository or perform other write operations. Therefore, at the top of the file (after the name: and before or after the on: block), add:
permissions:
contents: readThis ensures the GITHUB_TOKEN is only allowed to read repository contents during this workflow, following the principle of least privilege.
No further code or functionality changes are necessary.
-
Copy modified lines R2-R3
| @@ -1,4 +1,6 @@ | ||
| name: BrowserStack Accessibility Tests (On-Prem) | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_dispatch: |
No description provided.