From 80565fd45e072b2b80a37c7d46affb35902836ef Mon Sep 17 00:00:00 2001 From: Patrick Crumley Date: Thu, 5 Sep 2024 15:00:19 -0700 Subject: [PATCH 1/4] update some action versions, including upload-artifact & download-artifact which will be deprecated. Adds dependabot to update actions --- .github/workflows/benchmark.yaml | 2 +- .github/workflows/c.yaml | 14 +++++++------- .github/workflows/docker.yaml | 2 +- .github/workflows/generator.yaml | 4 ++-- .github/workflows/haskell.yaml | 8 ++++---- .github/workflows/java.yaml | 4 ++-- .github/workflows/javascript.yaml | 2 +- .github/workflows/python.yaml | 2 +- .github/workflows/rust.yaml | 6 +++--- .github/workflows/sonarcloud.yml | 4 ++-- .github/workflows/test_validate.yaml | 2 +- .github/workflows/validate.yaml | 4 ++-- 12 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 01a7e68ea8..2640f1637f 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -23,7 +23,7 @@ jobs: name: Benchmark runs-on: [xlarge] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup run: ./scripts/ci_prepare_python.bash - name: Run benchmarks diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 18cd4273d3..4bf0e6c78e 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -47,7 +47,7 @@ jobs: apt-get -qq update apt-get -qq install libeigen3-dev libserialport-dev git cmake build-essential ${{ matrix.compiler.package }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 @@ -84,7 +84,7 @@ jobs: name: macOS runs-on: macos-12 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 @@ -117,7 +117,7 @@ jobs: name: Test Big Endian runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 @@ -139,7 +139,7 @@ jobs: name: Bazel runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive @@ -160,7 +160,7 @@ jobs: name: ASAN runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive @@ -181,7 +181,7 @@ jobs: name: UBSAN runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive @@ -206,7 +206,7 @@ jobs: name: "Windows 2019 (Generator: ${{ matrix.generator }}, Shared Library: ${{ matrix.build_shared_libraries }})" runs-on: windows-2019 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 5c657f9cb2..21dab8d1fd 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -11,7 +11,7 @@ jobs: name: Build docker image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive diff --git a/.github/workflows/generator.yaml b/.github/workflows/generator.yaml index 184212fb35..61906d8a7f 100644 --- a/.github/workflows/generator.yaml +++ b/.github/workflows/generator.yaml @@ -25,7 +25,7 @@ jobs: volumes: - ${{ github.workspace }}:/mnt/workspace steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive @@ -56,7 +56,7 @@ jobs: cp docs/sbp.pdf . echo "::set-output name=artifact_name::sbp.pdf" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ steps.pdf.outputs.artifact_name }} path: ${{ steps.pdf.outputs.artifact_name }} diff --git a/.github/workflows/haskell.yaml b/.github/workflows/haskell.yaml index 8f3cbb501f..db6cebacbb 100644 --- a/.github/workflows/haskell.yaml +++ b/.github/workflows/haskell.yaml @@ -16,7 +16,7 @@ jobs: name: Build runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/cache@v3 name: Cache ~/.stack @@ -57,7 +57,7 @@ jobs: sbp2nmea echo "::set-output name=artifact_name::$ARTIFACT_NAME" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ steps.build.outputs.artifact_name }} path: ./haskell/${{ steps.build.outputs.artifact_name }} @@ -68,9 +68,9 @@ jobs: name: Publish github release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: path: artifacts diff --git a/.github/workflows/java.yaml b/.github/workflows/java.yaml index 5d7f824d11..e82b71d8ac 100644 --- a/.github/workflows/java.yaml +++ b/.github/workflows/java.yaml @@ -16,7 +16,7 @@ jobs: name: Test runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: gradle/gradle-build-action@v2 with: gradle-version: 7.1.1 @@ -27,7 +27,7 @@ jobs: # name: SonarQube # runs-on: ubuntu-20.04 # steps: -# - uses: actions/checkout@v2 +# - uses: actions/checkout@v4 # with: # fetch-depth: 0 # - uses: gradle/gradle-build-action@v2 diff --git a/.github/workflows/javascript.yaml b/.github/workflows/javascript.yaml index b4b4eaf64b..4a5135aa93 100644 --- a/.github/workflows/javascript.yaml +++ b/.github/workflows/javascript.yaml @@ -19,7 +19,7 @@ jobs: name: Test runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run tests shell: bash diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 685caca586..c5a3afa6df 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -20,7 +20,7 @@ jobs: name: Test runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup run: ./scripts/ci_prepare_python.bash diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index d1e0f2a190..2938fe8fd3 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -20,7 +20,7 @@ jobs: name: Format and lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./scripts/ci_prepare_rust.bash shell: bash @@ -48,7 +48,7 @@ jobs: name: Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./scripts/ci_prepare_rust.bash shell: bash @@ -73,7 +73,7 @@ jobs: - windows-2022 runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./scripts/ci_prepare_rust.bash shell: bash diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index bfd66fc608..7d7f0d14c8 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -10,7 +10,7 @@ jobs: sonarcloud: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: SonarCloud Scan @@ -31,7 +31,7 @@ jobs: name: C Code Coverage runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 diff --git a/.github/workflows/test_validate.yaml b/.github/workflows/test_validate.yaml index 8761f489fc..c0e513c852 100644 --- a/.github/workflows/test_validate.yaml +++ b/.github/workflows/test_validate.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout Sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run Tests run: | diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 2f66ec57a8..0fa6ec9043 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -19,10 +19,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout Current Spec - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Checkout Previous Spec - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: master path: previous From 18a9d6c711bb1e3835c762b6e0158f53a39a470c Mon Sep 17 00:00:00 2001 From: Patrick Crumley Date: Thu, 5 Sep 2024 15:00:30 -0700 Subject: [PATCH 2/4] update some action versions, including upload-artifact & download-artifact which will be deprecated. Adds dependabot to update actions --- .github/dependabot.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..a527fffbe1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +--- +version: 2 +updates: +# Set update schedule for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" From 70da70cbc61603bc3bf7a50dbc3c056ea239a902 Mon Sep 17 00:00:00 2001 From: Patrick Crumley Date: Thu, 5 Sep 2024 16:26:46 -0700 Subject: [PATCH 3/4] keep one action pinned at v2 --- .github/workflows/c.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 4bf0e6c78e..54d6edfe80 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -47,7 +47,7 @@ jobs: apt-get -qq update apt-get -qq install libeigen3-dev libserialport-dev git cmake build-essential ${{ matrix.compiler.package }} - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 with: submodules: recursive fetch-depth: 0 From e81fb94fdf797af43add45c5f3b4993164a094ab Mon Sep 17 00:00:00 2001 From: Patrick Crumley Date: Thu, 5 Sep 2024 16:30:18 -0700 Subject: [PATCH 4/4] complicated git history --- .github/workflows/c.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c.yaml b/.github/workflows/c.yaml index 4bf0e6c78e..54d6edfe80 100644 --- a/.github/workflows/c.yaml +++ b/.github/workflows/c.yaml @@ -47,7 +47,7 @@ jobs: apt-get -qq update apt-get -qq install libeigen3-dev libserialport-dev git cmake build-essential ${{ matrix.compiler.package }} - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 with: submodules: recursive fetch-depth: 0