diff --git a/.github/workflows/check_with_mesh_cli.yml b/.github/workflows/check_with_mesh_cli.yml index 1df101f..33e4631 100644 --- a/.github/workflows/check_with_mesh_cli.yml +++ b/.github/workflows/check_with_mesh_cli.yml @@ -3,6 +3,9 @@ name: Check with Mesh CLI (testnet) on: workflow_dispatch: +permissions: + contents: read + jobs: test-testnet: runs-on: ubuntu-latest diff --git a/.github/workflows/check_with_mesh_cli_on_localnet.yml b/.github/workflows/check_with_mesh_cli_on_localnet.yml index 1714398..2760490 100644 --- a/.github/workflows/check_with_mesh_cli_on_localnet.yml +++ b/.github/workflows/check_with_mesh_cli_on_localnet.yml @@ -3,6 +3,9 @@ name: Check with Mesh CLI (localnet) on: workflow_dispatch: +permissions: + contents: read + jobs: test-localnet: runs-on: ubuntu-latest diff --git a/.github/workflows/check_with_mesh_cli_on_mainnet.yml b/.github/workflows/check_with_mesh_cli_on_mainnet.yml index d62c9dd..380338c 100644 --- a/.github/workflows/check_with_mesh_cli_on_mainnet.yml +++ b/.github/workflows/check_with_mesh_cli_on_mainnet.yml @@ -3,6 +3,9 @@ name: Check with Mesh CLI (mainnet) on: workflow_dispatch: +permissions: + contents: read + jobs: test-mainnet: runs-on: ubuntu-latest diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 12af628..bfa5353 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -4,6 +4,9 @@ on: pull_request: workflow_dispatch: +permissions: + contents: read + jobs: build: strategy: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 5e1207a..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: "CodeQL" - -on: - pull_request: - workflow_dispatch: - -permissions: - security-events: write - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - language: ['go'] - # Learn more... - # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 - - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 6ca57cd..af39fe9 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -4,6 +4,9 @@ on: pull_request: workflow_dispatch: +permissions: + contents: read + jobs: build: name: Build diff --git a/.github/workflows/regularly_check_devnet.yml b/.github/workflows/regularly_check_devnet.yml index d61b87b..ed24edd 100644 --- a/.github/workflows/regularly_check_devnet.yml +++ b/.github/workflows/regularly_check_devnet.yml @@ -5,6 +5,9 @@ on: schedule: - cron: "0 */12 * * *" +permissions: + contents: read + jobs: check-devnet: runs-on: ubuntu-latest diff --git a/.github/workflows/regularly_check_mainnet.yml b/.github/workflows/regularly_check_mainnet.yml index 9fd74e6..1dc5b54 100644 --- a/.github/workflows/regularly_check_mainnet.yml +++ b/.github/workflows/regularly_check_mainnet.yml @@ -5,6 +5,9 @@ on: schedule: - cron: "0 */12 * * *" +permissions: + contents: read + jobs: check-mainnet: runs-on: ubuntu-latest diff --git a/.github/workflows/regularly_check_testnet.yml b/.github/workflows/regularly_check_testnet.yml index 8ceddc5..5f9f126 100644 --- a/.github/workflows/regularly_check_testnet.yml +++ b/.github/workflows/regularly_check_testnet.yml @@ -3,6 +3,9 @@ name: Regularly check testnet on: workflow_dispatch: +permissions: + contents: read + jobs: check-testnet: runs-on: ubuntu-latest