From 658b9bd7042a79e63ea009a2afc444228c451a78 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Wed, 17 Apr 2024 10:59:32 +0200 Subject: [PATCH] Bump GitHub actions https://github.com/actions/github-script/releases/tag/v7.0.0 https://github.com/tibdex/github-app-token/releases/tag/v2.0.0 https://github.com/actions/checkout/releases/tag/v3.0.0 https://github.com/actions/checkout/releases/tag/v4.0.0 https://github.com/softprops/action-gh-release/releases/tag/v2.0.0 https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md https://github.com/actions/cache/releases/tag/v4.0.0 https://github.com/actions/upload-artifact/releases/tag/v4.0.0 Signed-off-by: Earlopain <14981592+Earlopain@users.noreply.github.com> --- .github/workflows/add-untriaged.yml | 2 +- .github/workflows/backport.yml | 7 ++++--- .github/workflows/change_log.yml | 2 +- .github/workflows/compatibility.yml | 4 ++-- .github/workflows/license.yml | 2 +- .github/workflows/links.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/main.yml | 6 +++--- .github/workflows/release_drafter.yml | 6 +++--- .github/workflows/test-unreleased.yml | 10 +++++----- CHANGELOG.md | 1 + 11 files changed, 24 insertions(+), 22 deletions(-) diff --git a/.github/workflows/add-untriaged.yml b/.github/workflows/add-untriaged.yml index 9dcc7020d..74e494be1 100644 --- a/.github/workflows/add-untriaged.yml +++ b/.github/workflows/add-untriaged.yml @@ -8,7 +8,7 @@ jobs: apply-label: runs-on: ubuntu-latest steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | github.rest.issues.addLabels({ diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index e47d8d88c..4af9d9219 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -15,14 +15,15 @@ jobs: steps: - name: GitHub App token id: github_app_token - uses: tibdex/github-app-token@v1.5.0 + uses: tibdex/github-app-token@v2.1.0 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - installation_id: 22958780 + installation_retrieval_mode: id + installation_retrieval_payload: 22958780 - name: Backport - uses: VachaShah/backport@v1.1.4 + uses: VachaShah/backport@v2.2.0 with: github_token: ${{ steps.github_app_token.outputs.token }} branch_name: backport/backport-${{ github.event.number }} diff --git a/.github/workflows/change_log.yml b/.github/workflows/change_log.yml index 992a38b62..3a4f731e0 100644 --- a/.github/workflows/change_log.yml +++ b/.github/workflows/change_log.yml @@ -8,7 +8,7 @@ jobs: verify-changelog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 0bc0fdf99..9d7d6533c 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -22,7 +22,7 @@ jobs: cluster-version: [ "1.0.0", "1.0.1", "1.1.0", "1.2.0", "1.2.1", "1.2.2", "1.2.3", "1.2.4", "1.3.0", "1.3.1", "2.0.0" ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Increase system limits run: | sudo swapoff -a @@ -55,7 +55,7 @@ jobs: cluster-version: [ "1.0.0", "1.0.1", "1.1.0", "1.2.0", "1.2.1", "1.2.2", "1.2.3", "1.2.4", "1.3.0", "1.3.1", "1.3.2", "1.3.3", "2.0.0", "2.0.1" ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Increase system limits run: | sudo swapoff -a diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index d7357e56e..8e8c6f21b 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -4,7 +4,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: 3 diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 0a412b6ab..1b4d9f859 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: lychee Link Checker id: lychee - uses: lycheeverse/lychee-action@v1.9.0 + uses: lycheeverse/lychee-action@v1.9.3 with: args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "https://github.com/\[your*" --exclude "https://localhost:9200" --exclude "http://localhost:9200" --exclude "git://github.com/opensearch-project/*" --exclude "file:///github/workspace/*" --exclude ".*api.server.org:4430/search" --exclude ".*example.com:9200" --exclude ".*myhost:8080" --exclude ".*localhost:9200/" --exclude-mail env: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f56020bf4..40a8a908a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2e926544f..8ba6e705f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: ruby: [ 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, jruby-9.3 ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Increase system limits run: | sudo swapoff -a @@ -55,7 +55,7 @@ jobs: ruby: [ 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, jruby-9.3 ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Increase system limits run: | sudo swapoff -a @@ -88,7 +88,7 @@ jobs: ruby: [ 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, jruby-9.3 ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Increase system limits run: | sudo swapoff -a diff --git a/.github/workflows/release_drafter.yml b/.github/workflows/release_drafter.yml index f1e37fd4d..c919b7476 100644 --- a/.github/workflows/release_drafter.yml +++ b/.github/workflows/release_drafter.yml @@ -14,7 +14,7 @@ jobs: issues: write steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: get_approvers run: | echo "approvers=$(cat .github/CODEOWNERS | grep @ | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT @@ -31,7 +31,7 @@ jobs: with: ruby-version: 3.1 - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.GET_SECRET_IAM_ROLE }} aws-region: us-east-1 @@ -44,7 +44,7 @@ jobs: mkdir dist && mv opensearch-ruby-*.gem dist/ tar -cvf artifacts.tar.gz dist - name: Draft a release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: draft: true generate_release_notes: true diff --git a/.github/workflows/test-unreleased.yml b/.github/workflows/test-unreleased.yml index ba684e663..71859000d 100644 --- a/.github/workflows/test-unreleased.yml +++ b/.github/workflows/test-unreleased.yml @@ -29,7 +29,7 @@ jobs: with: ruby-version: ${{ matrix.entry.ruby_version }} - name: Checkout OpenSearch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: opensearch-project/OpenSearch ref: ${{ matrix.entry.opensearch_ref }} @@ -42,7 +42,7 @@ jobs: - name: Restore cached build id: cache-restore - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: opensearch/distribution/archives/linux-tar/build/distributions key: ${{ steps.get-key.outputs.key }} @@ -54,7 +54,7 @@ jobs: - name: Save cached build if: steps.cache-restore.outputs.cache-hit != 'true' - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: opensearch/distribution/archives/linux-tar/build/distributions key: ${{ steps.get-key.outputs.key }} @@ -79,7 +79,7 @@ jobs: exit 1 - name: Checkout Ruby Client - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ruby-client @@ -97,7 +97,7 @@ jobs: - name: Save server logs if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: opensearch-logs-${{ matrix.entry.opensearch_ref }}-ruby-${{ matrix.entry.ruby_version }} path: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b38bc6d2..36a1de536 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] ### Added ### Changed +- Bump GitHub Actions ([#248](https://github.com/opensearch-project/opensearch-ruby/pull/248)) ### Deprecated ### Removed ### Fixed