diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7321ba6df1..6606c45e26 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,7 +8,8 @@ on: - main # Declare default permissions as read only. -permissions: read-all +permissions: + contents: read jobs: analyze: @@ -30,6 +31,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 + with: + persist-credentials: false # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 9c2e93cd48..b31df70874 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -28,7 +28,8 @@ on: schedule: - cron: '0 0 * * 0' -permissions: read-all +permissions: + contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -53,6 +54,8 @@ jobs: continue-on-error: ${{ matrix.experimental }} steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 + with: + persist-credentials: false - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: channel: ${{ matrix.branch }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 27b3bee1d8..9fbde950ba 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -32,7 +32,8 @@ on: schedule: - cron: '0 0 * * 0' -permissions: read-all +permissions: + contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -46,6 +47,8 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 + with: + persist-credentials: false - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: sdk: beta @@ -61,6 +64,8 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 + with: + persist-credentials: false - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: sdk: beta @@ -82,6 +87,8 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 + with: + persist-credentials: false - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: sdk: beta diff --git a/.github/workflows/www.yml b/.github/workflows/www.yml index f8b39d67af..137ce20caf 100644 --- a/.github/workflows/www.yml +++ b/.github/workflows/www.yml @@ -26,7 +26,8 @@ on: schedule: - cron: '0 0 * * 0' -permissions: read-all +permissions: + contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -40,6 +41,8 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 + with: + persist-credentials: false - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: sdk: beta @@ -61,6 +64,8 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 + with: + persist-credentials: false - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: sdk: beta