Skip to content

Commit

Permalink
Set permissions for build.yaml to read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher authored Apr 8, 2024
1 parent cc26bbf commit 39348a6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ on:
- 2.5.x
- 2.6.x
pull_request:
types:
branches:
- master
- 2.4.x
- 2.5.x
- 2.6.x
workflow_dispatch:

permissions: read-all

jobs:
build:
strategy:
Expand Down Expand Up @@ -51,14 +52,6 @@ jobs:
run: |
echo "::set-output name=branch_name::${BRANCH_NAME_OR_REF#refs/heads/}"
echo "::set-output name=pr_number::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")"
- name: Send data to Sonar
# only send sonar data for Java 11
if: ${{ matrix.java-version == '11' }}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=openmrs_openmrs-core --batch-mode --file pom.xml -P sonar-cloud
- name: Update coverage data
# only send coverage data for Java 8
if: ${{ matrix.java-version == '8' && steps.refs.outcome == 'success' }}
Expand Down

0 comments on commit 39348a6

Please sign in to comment.