From 2c9ea20f9f9ce7410028ccb6bba0ebae0eb39fce Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Thu, 12 Dec 2024 15:25:59 -0500 Subject: [PATCH 1/2] Update workflows to use actions v4 and replace the archived workflow actions/setup-ruby@v1 with ruby/setup-ruby@v1 Signed-off-by: Joyce Quach --- .github/workflows/inspec-check.yml | 2 +- .github/workflows/verify-vagrant.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/inspec-check.yml b/.github/workflows/inspec-check.yml index 027bd39..4004d57 100644 --- a/.github/workflows/inspec-check.yml +++ b/.github/workflows/inspec-check.yml @@ -10,7 +10,7 @@ jobs: CHEF_LICENSE: accept-silent steps: - name: Check out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get InSpec Version run: inspec -v - name: Vendor the profile diff --git a/.github/workflows/verify-vagrant.yml b/.github/workflows/verify-vagrant.yml index 3284a1d..d911943 100644 --- a/.github/workflows/verify-vagrant.yml +++ b/.github/workflows/verify-vagrant.yml @@ -21,15 +21,15 @@ jobs: - name: Add jq for output formatting run: brew install jq - name: Check out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Ruby - uses: actions/setup-ruby@v1 + uses: ruby/setup-ruby@v1 with: ruby-version: '2.7' - name: Disable ri and rdoc run: 'echo "gem: --no-ri --no-rdoc" >> ~/.gemrc' - name: Setup caching - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: vendor/bundle key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} @@ -55,7 +55,7 @@ jobs: bundle exec inspec_tools compliance -j test/cookbooks/${{ matrix.suite }}/windows-10-ltsc-${{ matrix.suite }}-results.json -f ${{ matrix.suite }}.threshold.yml bundle exec inspec_tools compliance -j test/cookbooks/${{ matrix.suite }}/windows-10-${{ matrix.suite }}-results.json -f ${{ matrix.suite }}.threshold.yml - name: Save Test Result JSON - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: test/cookbooks/${{ matrix.suite }}/*-results.json if-no-files-found: error From 2c39977eef86dd22badc40cbff5d4caf69293d42 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Thu, 12 Dec 2024 17:33:33 -0500 Subject: [PATCH 2/2] Revert version change Signed-off-by: Joyce Quach --- .github/workflows/inspec-check.yml | 2 +- .github/workflows/verify-vagrant.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/inspec-check.yml b/.github/workflows/inspec-check.yml index 4004d57..027bd39 100644 --- a/.github/workflows/inspec-check.yml +++ b/.github/workflows/inspec-check.yml @@ -10,7 +10,7 @@ jobs: CHEF_LICENSE: accept-silent steps: - name: Check out repository - uses: actions/checkout@v4 + uses: actions/checkout@v2 - name: Get InSpec Version run: inspec -v - name: Vendor the profile diff --git a/.github/workflows/verify-vagrant.yml b/.github/workflows/verify-vagrant.yml index d911943..0059f7c 100644 --- a/.github/workflows/verify-vagrant.yml +++ b/.github/workflows/verify-vagrant.yml @@ -21,7 +21,7 @@ jobs: - name: Add jq for output formatting run: brew install jq - name: Check out repository - uses: actions/checkout@v4 + uses: actions/checkout@v2 - name: Setup Ruby uses: ruby/setup-ruby@v1 with: