diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index e4a484469..678601236 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: true permissions: - contents: read + contents: write jobs: autofix: @@ -18,11 +18,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5.0.0 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: fetch-depth: 0 + # autofix-ci commits formatting fixes back to this branch. + persist-credentials: true - name: Setup Tools - uses: tanstack/config/.github/setup@main + uses: tanstack/config/.github/setup@8f433551298bae362c0e7a356f38c7d240c05d47 # main - name: Fix formatting run: pnpm format - name: Apply fixes diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 41aec48b4..98121f328 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,17 +3,21 @@ name: PR on: pull_request: +permissions: + contents: read + jobs: pr: name: PR runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5.0.0 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: fetch-depth: 0 + persist-credentials: false - name: Setup Tools - uses: tanstack/config/.github/setup@main + uses: tanstack/config/.github/setup@8f433551298bae362c0e7a356f38c7d240c05d47 # main - name: Run Build run: pnpm build - name: Run Tests diff --git a/.github/workflows/update-tanstack-deps.yml b/.github/workflows/update-tanstack-deps.yml index 60f23f758..b576d8aa0 100644 --- a/.github/workflows/update-tanstack-deps.yml +++ b/.github/workflows/update-tanstack-deps.yml @@ -10,17 +10,20 @@ jobs: update-deps: name: Update TanStack Dependencies runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Git Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 with: - token: ${{ secrets.GITHUB_TOKEN }} + # This scheduled job commits dependency updates back to the branch. + persist-credentials: true - name: Setup pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version-file: .nvmrc cache: pnpm diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 000000000..1d4088db8 --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,25 @@ +name: GitHub Actions Security Analysis + +on: + push: + branches: [main] + pull_request: + branches: ['**'] + +permissions: {} + +jobs: + zizmor: + name: Run zizmor + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Run zizmor + uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3 + with: + advanced-security: false + annotations: true