From 1035ebdd8385ad5862740a74a910d2284fa13610 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Sat, 28 Sep 2024 12:46:35 -0700 Subject: [PATCH] Fix update GH versions path --- .github/actions/vagrant-setup/action.yml | 2 +- .github/workflows/build.yml | 4 ++-- .github/workflows/diagram.yml | 2 +- .github/workflows/distros.yml | 2 +- .github/workflows/linter.yml | 8 ++++---- .github/workflows/on-demand.yml | 6 +++--- .github/workflows/on-demand_aio.yml | 6 +++--- .github/workflows/on-demand_noha.yml | 2 +- .github/workflows/rebase.yml | 2 +- .github/workflows/scheduled_aio.yml | 4 ++-- .github/workflows/spell.yml | 4 ++-- .github/workflows/update.yml | 6 +++--- ci/update_versions.sh | 4 ++-- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/actions/vagrant-setup/action.yml b/.github/actions/vagrant-setup/action.yml index 3abaeba1c..1d53fbe91 100644 --- a/.github/actions/vagrant-setup/action.yml +++ b/.github/actions/vagrant-setup/action.yml @@ -16,7 +16,7 @@ runs: using: "composite" steps: - name: Cache Vagrant boxes - uses: actions/cache@v3.0.10 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # refs/tags/v4.0.2 with: path: ~/.vagrant.d/boxes key: ${{ runner.os }}-vagrant-${{ inputs.distro }}-${{ hashFiles('distros_supported.yml') }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed12f38fb..a38500e09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: github.event.review.state == 'approved' ) || github.event_name != 'pull_request_review' steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Install requirements env: OS_KOLLA_BUILD_ARGS: 'keystone --registry 127.0.0.1:5000 --push --threads 4 --quiet --retries 5 --cache --push-threads 2 --squash --base ubuntu --tag latest' @@ -73,7 +73,7 @@ jobs: github.event.review.state == 'approved' ) || github.event_name != 'pull_request_review' steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: ./.github/actions/vagrant-setup with: distro: ${{ matrix.distro }} diff --git a/.github/workflows/diagram.yml b/.github/workflows/diagram.yml index efddf5e88..38d2b5d0a 100644 --- a/.github/workflows/diagram.yml +++ b/.github/workflows/diagram.yml @@ -23,7 +23,7 @@ jobs: pull-requests: write # for technote-space/create-pr-action to create a PR runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Update diagram uses: githubocto/repo-visualizer@a999615bdab757559bf94bda1fe6eef232765f85 # refs/tags/0.9.1 with: diff --git a/.github/workflows/distros.yml b/.github/workflows/distros.yml index cf3c78d67..bf8e22683 100644 --- a/.github/workflows/distros.yml +++ b/.github/workflows/distros.yml @@ -21,7 +21,7 @@ jobs: name: Check for latest Vagrant box versions runs-on: macos-12 steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # refs/tags/v4.0.2 with: path: ~/.vagrant.d/boxes diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index d75206b1b..611561dd0 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -17,7 +17,7 @@ jobs: name: Count Lines of Code runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Setup Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # refs/tags/v5.0.2 with: @@ -30,14 +30,14 @@ jobs: name: Check documentation external links runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Check broken links uses: gaurav-nelson/github-action-markdown-link-check@499c1e7f3637c131334fa8e937c45144f79d72d2 # refs/tags/v1 check-super-linter: name: Check syntax (super-linter) runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: github/super-linter@b807e99ddd37e444d189cfd2c2ca1274d8ae8ef1 # refs/tags/v7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -47,7 +47,7 @@ jobs: name: Check syntax (tox) runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Install tox run: pip install tox - name: Run tox lint validation diff --git a/.github/workflows/on-demand.yml b/.github/workflows/on-demand.yml index 7d140eae3..a1761e5e7 100644 --- a/.github/workflows/on-demand.yml +++ b/.github/workflows/on-demand.yml @@ -27,9 +27,9 @@ jobs: ) || github.event_name != 'pull_request_review' runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Run the sh-checker - uses: luizm/action-sh-checker@c6edb3de93e904488b413636d96c6a56e3ad671a # refs/tags/v0.8.0 + uses: luizm/action-sh-checker@17bd25a6ee188d2b91f677060038f4ba37ba14b2 # refs/tags/v0.9.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SHFMT_OPTS: -i 4 -s @@ -40,7 +40,7 @@ jobs: name: Run BDD shell specs for Bash demo runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Install ShellSpec run: curl -fsSL https://github.com/shellspec/shellspec/releases/latest/download/shellspec-dist.tar.gz | tar -xz -C .. - name: Run Shellspec diff --git a/.github/workflows/on-demand_aio.yml b/.github/workflows/on-demand_aio.yml index d66c22fd8..a9f4a86aa 100644 --- a/.github/workflows/on-demand_aio.yml +++ b/.github/workflows/on-demand_aio.yml @@ -30,7 +30,7 @@ jobs: github.event.review.state == 'approved' ) || github.event_name != 'pull_request_review' steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Get matrix values id: set-matrix run: | @@ -57,7 +57,7 @@ jobs: distro: ${{ fromJson(needs.generate-json-matrix.outputs.matrix) }} runs-on: macos-12 steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: ./.github/actions/vagrant-setup with: distro: ${{ matrix.distro }} @@ -77,7 +77,7 @@ jobs: github.event.review.state == 'approved' ) || github.event_name != 'pull_request_review' steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Install requirements run: | sudo apt-get update diff --git a/.github/workflows/on-demand_noha.yml b/.github/workflows/on-demand_noha.yml index cc3a67f37..b4164a9f3 100644 --- a/.github/workflows/on-demand_noha.yml +++ b/.github/workflows/on-demand_noha.yml @@ -35,7 +35,7 @@ jobs: VAGRANT_EXPERIMENTAL: disks OS_NUM_COMPUTE_NODES: 1 steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: ./.github/actions/vagrant-setup - name: Install GNU tools run: brew install iproute2mac diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index ba4dd0029..a86e9761d 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 # otherwise, you will fail to push refs to dest repo diff --git a/.github/workflows/scheduled_aio.yml b/.github/workflows/scheduled_aio.yml index 4c5e2a12a..72342f1eb 100644 --- a/.github/workflows/scheduled_aio.yml +++ b/.github/workflows/scheduled_aio.yml @@ -17,7 +17,7 @@ jobs: generate-json-matrix: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: Get matrix values id: set-matrix run: | @@ -44,7 +44,7 @@ jobs: distro: ${{ fromJson(needs.generate-json-matrix.outputs.matrix) }} runs-on: macos-12 steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: ./.github/actions/vagrant-setup - name: Deploy latest release in All-in-One instance env: diff --git a/.github/workflows/spell.yml b/.github/workflows/spell.yml index d7783009a..dd55990e2 100644 --- a/.github/workflows/spell.yml +++ b/.github/workflows/spell.yml @@ -22,7 +22,7 @@ jobs: name: Check spelling (reviewdog) runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: reviewdog/action-misspell@1de44e0dd5efaaddf131937e4892afd8a0dc4b13 # refs/tags/v1.23.0 with: github_token: ${{ secrets.github_token }} @@ -30,6 +30,6 @@ jobs: name: Check spelling (pyspelling) runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: igsekor/pyspelling-any@155eb06641bb9259cab59b5126a40be943ecb4f7 # refs/tags/v1.0.4 name: Spellcheck diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 2c1c4125d..06121a6df 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -36,7 +36,7 @@ jobs: image: ${{ matrix.image }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - name: install dependencies shell: bash run: | @@ -63,7 +63,7 @@ jobs: check-dictionary: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # refs/tags/v2.1.4 with: EXECUTE_COMMANDS: | @@ -88,7 +88,7 @@ jobs: check-github-actions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # refs/tags/v4.2.0 - uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # refs/tags/v2.1.4 with: EXECUTE_COMMANDS: | diff --git a/ci/update_versions.sh b/ci/update_versions.sh index c83a0ccb0..505d0e0c3 100755 --- a/ci/update_versions.sh +++ b/ci/update_versions.sh @@ -15,9 +15,9 @@ if [[ ${OS_DEBUG:-false} == "true" ]]; then fi # Update GitHub Action commit hashes -gh_actions=$(grep -r "uses: [a-zA-Z\-]*/[\_a-z\-]*@" .github/workflows/ | sed 's/@.*//' | awk -F ': ' '{ print $3 }' | sort | uniq) +gh_actions=$(grep -r "uses: [a-zA-Z\-]*/[\_a-z\-]*@" .github/ | sed 's/@.*//' | awk -F ': ' '{ print $3 }' | sort | uniq) for action in $gh_actions; do commit_hash=$(git ls-remote --tags "https://github.com/$action" | grep 'refs/tags/[v]\?[0-9][0-9\.]*$' | awk '{ print $NF,$0 }' | sort -k1,1 -V | cut -f2- -d' ' | grep -oh '.*refs/tags/[v0-9\.]*$' | tail -1 | awk '{ printf "%s # %s\n",$1,$2 }') # shellcheck disable=SC2267 - grep -ElRZ "uses: $action@" .github/workflows/ | xargs -0 -l sed -i -e "s|uses: $action@.*|uses: $action@$commit_hash|g" + grep -ElRZ "uses: $action@" .github/ | xargs -0 -l sed -i -e "s|uses: $action@.*|uses: $action@$commit_hash|g" done