From 1048fc4006e12d85f6fa07d81edf2482d51469df Mon Sep 17 00:00:00 2001 From: avivkeller Date: Thu, 31 Jul 2025 10:16:58 -0400 Subject: [PATCH] chore(ci): harden --- .github/workflows/cla.yaml | 4 ++-- .github/workflows/deploy.yaml | 10 ++++++---- .github/workflows/pull-request.yaml | 16 +++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 3713922..e44e37d 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -12,7 +12,7 @@ jobs: steps: - name: "Get Team Members" id: team - uses: actions/github-script@v6 + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: github-token: ${{ secrets.ORG_TOKEN }} result-encoding: string @@ -25,7 +25,7 @@ jobs: - name: "CLA Assistant" if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: contributor-assistant/github-action@v2.1.3-beta + uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PERSONAL_ACCESS_TOKEN : ${{ secrets.ORG_TOKEN }} diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6be448a..352d4fc 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,21 +12,23 @@ jobs: packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false - - uses: docker/login-action@v2 + - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0 with: images: ghcr.io/${{ github.repository }} labels: | org.opencontainers.image.licenses=MIT OR Apache-2.0 - - uses: docker/build-push-action@v4 + - uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 with: context: server file: server/Dockerfile diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 2e95fd4..8b1cfdb 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -7,16 +7,14 @@ on: jobs: test: - strategy: - matrix: - node-version: [14.x] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: - node-version: ${{ matrix.node }} + persist-credentials: false + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version: 14.x - run: yarn --frozen-lockfile - run: yarn build - - run: yarn test \ No newline at end of file + - run: yarn test