diff --git a/.github/actions/setup-deps/action.yml b/.github/actions/setup-deps/action.yml index f2e94b75f..05d128304 100644 --- a/.github/actions/setup-deps/action.yml +++ b/.github/actions/setup-deps/action.yml @@ -15,7 +15,7 @@ runs: shell: bash - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 with: node-version: 20.x cache: 'yarn' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 780e79b41..a54352bb7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,6 +10,9 @@ on: paths: - 'docusaurus/**' +permissions: + contents: write # required to deploy to GitHub Pages + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ !contains(github.ref, 'main')}} @@ -20,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Deps uses: ./.github/actions/setup-deps @@ -34,7 +37,7 @@ jobs: # Popular action to deploy to GitHub Pages: # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b2ba64d4..6447fa878 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,10 @@ on: pull_request: branches: ['**'] +permissions: + pull-requests: write # required for Danger to post comments + statuses: write # required for Danger to post commit statuses + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ !contains(github.ref, 'main')}} @@ -16,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Deps uses: ./.github/actions/setup-deps @@ -47,7 +51,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: fetch-depth: 0 diff --git a/.github/workflows/stability.yml b/.github/workflows/stability.yml index 301580bf1..acacdbba7 100644 --- a/.github/workflows/stability.yml +++ b/.github/workflows/stability.yml @@ -2,6 +2,8 @@ name: Test Performance Stability on: [workflow_dispatch] +permissions: read-all + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ !contains(github.ref, 'main')}} @@ -12,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Deps uses: ./.github/actions/setup-deps