diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a09b4c9..d2c722a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,9 @@ on: - master pull_request: +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true @@ -17,7 +20,13 @@ jobs: name: Lint and build steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + persist-credentials: false - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3 + - uses: workos/setup-socket-firewall@ca93dd8aa351f54f4729fe3377a9be23c631c25d + with: + token: ${{ secrets.PUBLIC_SOCKET_FIREWALL_TOKEN }} + allow-external-fork-fallback: true - run: npm ci - run: npm run build - run: npm run format:check @@ -35,10 +44,16 @@ jobs: postgres: [13, 15, 17, 18] steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + persist-credentials: false - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3 - uses: ankane/setup-postgres@4aaf5f833005d1475c041ba96f797d208129630c # v1 with: postgres-version: ${{ matrix.postgres }} database: pgslice_test + - uses: workos/setup-socket-firewall@ca93dd8aa351f54f4729fe3377a9be23c631c25d + with: + token: ${{ secrets.PUBLIC_SOCKET_FIREWALL_TOKEN }} + allow-external-fork-fallback: true - run: npm ci - run: npm test -- run