diff --git a/.github/workflows/mobile_tests.yml b/.github/workflows/mobile_tests.yml index 017547d8c0..356d826308 100644 --- a/.github/workflows/mobile_tests.yml +++ b/.github/workflows/mobile_tests.yml @@ -1,5 +1,7 @@ name: Mobile Tests on: [push, pull_request] +permissions: + contents: read jobs: mobile_tests: @@ -11,6 +13,8 @@ jobs: steps: - uses: actions/checkout@v2 + with: + persist-credentials: false - uses: WillAbides/setup-go-faster@v1.6.0 with: go-version: ${{ matrix.go-version }} diff --git a/.github/workflows/platform_tests.yml b/.github/workflows/platform_tests.yml index a25fb1cf75..09a004e53e 100644 --- a/.github/workflows/platform_tests.yml +++ b/.github/workflows/platform_tests.yml @@ -1,5 +1,7 @@ name: Platform Tests on: [push, pull_request] +permissions: + contents: read jobs: platform_tests: @@ -12,6 +14,8 @@ jobs: steps: - uses: actions/checkout@v2 + with: + persist-credentials: false - uses: WillAbides/setup-go-faster@v1.5.0 id: setup-go-faster with: diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 7bfc11e54d..2a4313b0ba 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -1,11 +1,18 @@ name: Static Analysis on: [push, pull_request] +permissions: + contents: read jobs: checks: runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: - uses: actions/checkout@v2 + with: + persist-credentials: false - uses: WillAbides/setup-go-faster@v1.6.0 with: go-version: '1.17.x' @@ -16,7 +23,7 @@ jobs: go install golang.org/x/tools/cmd/goimports@latest go install github.com/fzipp/gocyclo/cmd/gocyclo@latest go install golang.org/x/lint/golint@latest - go install honnef.co/go/tools/cmd/staticcheck@v0.2.0 + go install honnef.co/go/tools/cmd/staticcheck@v0.2.1 - name: Cleanup repository run: rm -rf vendor/