From e4a100518e05152ed2e8f89351644f8a69b9c9f7 Mon Sep 17 00:00:00 2001 From: Andrea Peruffo Date: Mon, 23 Jan 2023 15:48:57 +0000 Subject: [PATCH] Use commit SHA instead of branch name for third-party actions --- .github/workflows/doc-portal.yml | 3 ++- .github/workflows/publish.yaml | 3 ++- .github/workflows/release-java.yaml | 9 ++++++--- .github/workflows/sdk-update.yaml | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/doc-portal.yml b/.github/workflows/doc-portal.yml index 8f5ec9f8..f395f4a8 100644 --- a/.github/workflows/doc-portal.yml +++ b/.github/workflows/doc-portal.yml @@ -14,7 +14,8 @@ jobs: - uses: actions/checkout@v2 name: Checkout Source - name: Deploy - uses: JamesIves/github-pages-deploy-action@4.1.5 + # 4.1.5 + uses: JamesIves/github-pages-deploy-action@0f24da7de3e7e135102609a4c9633b025be8411b env: DEPLOY_BRANCH: doc-portal with: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6b3ed08c..43fbd926 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,7 +18,8 @@ jobs: yarn install yarn build - name: Inject slug/short variables - uses: rlespinasse/github-slug-action@v4 + # v4 + uses: rlespinasse/github-slug-action@a362e5fb42057a3a23a62218b050838f1bacca5d # - name: Validate Tag # run: | # cd app-services-sdk-js diff --git a/.github/workflows/release-java.yaml b/.github/workflows/release-java.yaml index 992e890f..2e81455e 100644 --- a/.github/workflows/release-java.yaml +++ b/.github/workflows/release-java.yaml @@ -27,7 +27,8 @@ jobs: cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import gpg --list-secret-keys --keyid-format LONG - name: Inject slug/short variables - uses: rlespinasse/github-slug-action@v4 + # v4 + uses: rlespinasse/github-slug-action@a362e5fb42057a3a23a62218b050838f1bacca5d - name: Validate Tag run: npx semver $GITHUB_REF_SLUG - name: Version and build kafka-management-sdk @@ -97,14 +98,16 @@ jobs: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - name: Install git-chglog - uses: craicoverflow/install-git-chglog@v1 + # v1 + uses: craicoverflow/install-git-chglog@6d338c1d96dcbf12a2115fbe8e5b9817293aae33 - name: Generate changelog run: | echo "CHANGELOG<> $GITHUB_ENV echo "$(git-chglog $GITHUB_REF_SLUG 2> /dev/null || echo '**PRERELEASE**')" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV - name: Update Release Notes - uses: meeDamian/github-release@2.0 + # 2.0 + uses: meeDamian/github-release@7ae19492500104f636b3fee4d8103af0fed36c8e with: token: ${{ secrets.GITHUB_TOKEN }} body: ${{ env.CHANGELOG }} diff --git a/.github/workflows/sdk-update.yaml b/.github/workflows/sdk-update.yaml index 88e25d09..bbc1a1af 100644 --- a/.github/workflows/sdk-update.yaml +++ b/.github/workflows/sdk-update.yaml @@ -37,7 +37,8 @@ jobs: - name: Generate errors run: node scripts/errors/generate_errors.js - name: Make pull request - uses: peter-evans/create-pull-request@v4 + # v4 + uses: peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04 with: title: "chore(all): re-generate SDKs" commit-message: "chore(all): re-generate OpenAPI client(s)"