diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c7a3a101bc..2b3129e29e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -24,7 +24,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 # Override language selection by uncommenting this and choosing your languages with: languages: javascript @@ -32,7 +32,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -46,4 +46,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index a1fcdaea5b..6b7dc2f98d 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -32,12 +32,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -56,12 +56,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -72,7 +72,7 @@ jobs: - name: dist cache if: ${{ success() }} - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: ./dist/content-ce key: cache-dist-${{ github.run_id }} @@ -83,11 +83,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -146,12 +146,12 @@ jobs: id: 17 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -159,7 +159,7 @@ jobs: - uses: ./.github/actions/before-install - run: npm ci - - uses: actions/cache/restore@v3 + - uses: actions/cache/restore@v4 id: cache with: path: ./dist/content-ce @@ -193,12 +193,12 @@ jobs: run: exit 1 - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: Extract commit message - uses: Alfresco/alfresco-build-tools/.github/actions/get-commit-message@v1.35.0 + uses: Alfresco/alfresco-build-tools/.github/actions/get-commit-message@v7.0.0 - name: Check ADF link shell: bash diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index bb25834f81..300cd5d0ac 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -44,12 +44,12 @@ jobs: - name: "aca-shared" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -65,17 +65,17 @@ jobs: packages: write steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' - - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.35.0 + - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v7.0.0 - name: publish uses: ./.github/actions/publish-libs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f68106f19b..4faf5ba737 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,11 +25,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -54,11 +54,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -83,16 +83,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' - uses: ./.github/actions/setup - - uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v1.35.0 + - uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v7.0.0 with: username: ${{ vars.BOT_GITHUB_USERNAME }} email: ${{ vars.BOT_GITHUB_EMAIL }} @@ -111,12 +111,12 @@ jobs: packages: write steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/upstream-adf.yml b/.github/workflows/upstream-adf.yml index 1131f60469..40d0c1c940 100644 --- a/.github/workflows/upstream-adf.yml +++ b/.github/workflows/upstream-adf.yml @@ -26,12 +26,12 @@ jobs: steps: - id: checkoutRepo name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - id: fetchLatestPkg name: Fetch the latest package version - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.BOT_GITHUB_TOKEN }} script: | @@ -67,7 +67,7 @@ jobs: - id: checkPrAlreadyExist name: Check if PR with latest already exist if: ${{ steps.fetchLatestPkg.outputs.hasNewVersion == 'true' }} - uses: actions/github-script@v6 + uses: actions/github-script@v7 env: HAS_NEW_ADF_VERSION: ${{ steps.fetchLatestPkg.outputs.hasNewADFVersion }} LATEST_ADF_VERSION: ${{ steps.fetchLatestPkg.outputs.latestADFVersion }} @@ -104,12 +104,12 @@ jobs: needs: upstream steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.BOT_GITHUB_TOKEN }} fetch-depth: 1 - name: setup NPM - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -150,7 +150,7 @@ jobs: fi - name: Commit Code if: ${{ needs.upstream.outputs.hasNewVersion == 'true' }} - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "[ci:force][auto-commit] Update dependencies ADF:${{ needs.upstream.outputs.latestADFVersion }} JS:${{ needs.upstream.outputs.latestJSVersion }}" branch: upstream-dependencies @@ -158,7 +158,7 @@ jobs: create_branch: true - name: Create a Pull request - uses: actions/github-script@v6 + uses: actions/github-script@v7 env: PACKAGE_VERSION_ADF: ${{ needs.upstream.outputs.latestADFVersion }} PACKAGE_VERSION_JS: ${{ needs.upstream.outputs.latestJSVersion }}