diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ad69f38287..f5d3e88060 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,9 @@ on: paths-ignore: - "README.md" - "release-notes/*" +permissions: + contents: read + jobs: build: runs-on: ${{ matrix.os }} @@ -60,7 +63,7 @@ jobs: run: ./mvnw -B -q -ff -ntp test - name: Publish code coverage if: github.event_name != 'pull_request' && matrix.java_version == '8' - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./target/site/jacoco/jacoco.xml