diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index b231c16b..b6c9251d 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -14,11 +14,11 @@ jobs: runs-on: ubuntu-latest if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 'lts/*' cache: 'npm' diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index c0399026..be5f45f4 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -20,7 +20,7 @@ jobs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} steps: - - uses: googleapis/release-please-action@v4 + - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5 id: release with: token: ${{ secrets.GITHUB_TOKEN }} @@ -39,9 +39,9 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 'lts/*' registry-url: 'https://registry.npmjs.org' @@ -72,9 +72,9 @@ jobs: pages: write if: ${{ github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 'lts/*' cache: 'npm' @@ -83,7 +83,7 @@ jobs: run: npm ci && npm --prefix packages/diracx-web-components run build-doc - name: Upload artifact - uses: actions/upload-pages-artifact@v4 + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5 with: path: packages/diracx-web-components/storybook-static @@ -97,7 +97,7 @@ jobs: steps: - id: deploy name: Deploy to GitHub Pages - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5 with: token: ${{ github.token }} @@ -108,7 +108,7 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Set up QEMU uses: docker/setup-qemu-action@v4 @@ -135,7 +135,7 @@ jobs: if: ${{ github.event_name == 'push' && github.repository == 'DIRACGrid/diracx-web' }} needs: release-please steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Set up QEMU uses: docker/setup-qemu-action@v4 @@ -170,13 +170,13 @@ jobs: if: ${{ needs.release-please.outputs.release_created == 'true' }} steps: - name: Checkout diracx-web (for update script) - uses: actions/checkout@v6 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: path: diracx-web sparse-checkout: .github/workflows - name: Checkout diracx-charts - uses: actions/checkout@v6 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: repository: DIRACGrid/diracx-charts token: ${{ secrets.CHARTS_UPDATE_TOKEN }} diff --git a/.github/workflows/diracx-web-components-test.yml b/.github/workflows/diracx-web-components-test.yml index fc317607..b8d38e54 100644 --- a/.github/workflows/diracx-web-components-test.yml +++ b/.github/workflows/diracx-web-components-test.yml @@ -22,9 +22,9 @@ jobs: runs-on: ubuntu-latest if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 'lts/*' cache: 'npm' diff --git a/.github/workflows/diracx-web-test.yml b/.github/workflows/diracx-web-test.yml index 587f5f3f..4acc94b5 100644 --- a/.github/workflows/diracx-web-test.yml +++ b/.github/workflows/diracx-web-test.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Clone source run: | @@ -57,7 +57,7 @@ jobs: run: echo "DIRACX_URL=https://$(ifconfig | grep 'inet ' | awk '{ print $2 }' | grep -v '^127' | head -n 1 | cut -d '/' -f 1).nip.io:8000" >> $GITHUB_ENV - name: Start Cypress - uses: cypress-io/github-action@v6 + uses: cypress-io/github-action@09090944bd8aaa2a517cefb6e38bf1aae336b42b # v7.4.3 with: browser: chrome config: baseUrl=${{ env.DIRACX_URL }} diff --git a/.github/workflows/gubbins-test.yml b/.github/workflows/gubbins-test.yml index d247137f..9f9fa4a7 100644 --- a/.github/workflows/gubbins-test.yml +++ b/.github/workflows/gubbins-test.yml @@ -17,9 +17,9 @@ jobs: runs-on: ubuntu-latest if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 'lts/*' cache: 'npm' @@ -94,9 +94,9 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 'lts/*' registry-url: 'https://registry.npmjs.org' @@ -148,7 +148,7 @@ jobs: needs: prepare-gubbins-frontend-as-a-standalone if: ${{ github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Set up QEMU uses: docker/setup-qemu-action@v4 @@ -166,7 +166,7 @@ jobs: # WARNING: In your CI/CD pipeline, you should remove the following steps # # ------------------------------------------------------------------------# - name: Download gubbins-web - uses: actions/download-artifact@v7 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: name: gubbins-web path: /tmp/gubbins-web @@ -188,7 +188,7 @@ jobs: needs: [prepare-gubbins-frontend-as-a-standalone, prepare-gubbins-backend] if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Clone source run: | @@ -204,7 +204,7 @@ jobs: git clone https://github.com/DIRACGrid/diracx.git - name: Download gubbins images - uses: actions/download-artifact@v7 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: name: gubbins-images path: /tmp/ @@ -217,7 +217,7 @@ jobs: rm -f /tmp/gubbins_client_image.tar - name: Download gubbins-web - uses: actions/download-artifact@v7 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: name: gubbins-web path: /tmp/gubbins-web @@ -279,7 +279,7 @@ jobs: # Run e2e tests with Cypress - name: Start Cypress - uses: cypress-io/github-action@v6 + uses: cypress-io/github-action@09090944bd8aaa2a517cefb6e38bf1aae336b42b # v7.4.3 with: browser: chrome config: baseUrl=${{ env.DIRACX_URL }} diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 1eb58b3c..9f3067fa 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -15,9 +15,9 @@ jobs: lint-pr-title: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 'lts/*' cache: 'npm'