Use actions/checkout@v2, which fixes security vulnerability. (#7036)

Fix for issue #6999.
This commit is contained in:
Jon Simantov
2022-01-25 19:19:05 -05:00
committed by GitHub
parent a2d38fbb98
commit a0a6c3f8c6

View File

@@ -16,7 +16,7 @@ jobs:
matrix: matrix:
cxx: [g++-10, clang++-12] cxx: [g++-10, clang++-12]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: cmake - name: cmake
run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release . run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .
- name: build - name: build
@@ -37,7 +37,7 @@ jobs:
name: Build Windows 2019 name: Build Windows 2019
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Add msbuild to PATH - name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1 uses: microsoft/setup-msbuild@v1.1
- name: cmake - name: cmake
@@ -56,7 +56,7 @@ jobs:
name: Build Windows 2017 name: Build Windows 2017
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Add msbuild to PATH - name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1 uses: microsoft/setup-msbuild@v1.1
- name: cmake - name: cmake
@@ -70,7 +70,7 @@ jobs:
name: Build Windows 2015 name: Build Windows 2015
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Add msbuild to PATH - name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1 uses: microsoft/setup-msbuild@v1.1
- name: cmake - name: cmake
@@ -92,7 +92,7 @@ jobs:
#'-p:EnableSpanT=true,UnsafeByteBuffer=true' #'-p:EnableSpanT=true,UnsafeByteBuffer=true'
] ]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Setup .NET Core SDK - name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.9.0 uses: actions/setup-dotnet@v1.9.0
with: with:
@@ -112,7 +112,7 @@ jobs:
name: Build Mac name: Build Mac
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: cmake - name: cmake
run: cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_FLATC_EXECUTABLE=_build/Release/flatc . run: cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_FLATC_EXECUTABLE=_build/Release/flatc .
- name: build - name: build
@@ -139,7 +139,7 @@ jobs:
name: Build Android (on Linux) name: Build Android (on Linux)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: set up JDK 1.8 - name: set up JDK 1.8
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
@@ -160,7 +160,7 @@ jobs:
matrix: matrix:
cxx: [g++-10, clang++-12] cxx: [g++-10, clang++-12]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: cmake - name: cmake
run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DFLATBUFFERS_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release . && make -j4 run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DFLATBUFFERS_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release . && make -j4
- name: Generate - name: Generate
@@ -175,7 +175,7 @@ jobs:
matrix: matrix:
cxx: [g++-10] cxx: [g++-10]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: cmake - name: cmake
run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DFLATBUFFERS_CXX_FLAGS="-Wno-unused-parameter -fno-aligned-new" -DFLATBUFFERS_BUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release . && make -j4 run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DFLATBUFFERS_CXX_FLAGS="-Wno-unused-parameter -fno-aligned-new" -DFLATBUFFERS_BUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release . && make -j4
- name: Run benchmarks - name: Run benchmarks
@@ -190,7 +190,7 @@ jobs:
name: Build Java name: Build Java
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: test - name: test
working-directory: tests working-directory: tests
run: bash JavaTest.sh run: bash JavaTest.sh
@@ -240,7 +240,7 @@ jobs:
name: Build Rust name: Build Rust
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: test - name: test
working-directory: tests working-directory: tests
run: bash RustTest.sh run: bash RustTest.sh
@@ -249,7 +249,7 @@ jobs:
name: Build Python name: Build Python
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: test - name: test
working-directory: tests working-directory: tests
run: bash PythonTest.sh run: bash PythonTest.sh
@@ -258,7 +258,7 @@ jobs:
name: Build Go name: Build Go
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: flatc - name: flatc
# FIXME: make test script not rely on flatc # FIXME: make test script not rely on flatc
run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF . && make -j4 run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF . && make -j4
@@ -270,7 +270,7 @@ jobs:
name: Build Swift name: Build Swift
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: test - name: test
working-directory: tests/FlatBuffers.Test.Swift working-directory: tests/FlatBuffers.Test.Swift
run: sh SwiftTest.sh run: sh SwiftTest.sh
@@ -279,7 +279,7 @@ jobs:
name: Build TS name: Build TS
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: compile - name: compile
run: npm run compile run: npm run compile
- name: test - name: test
@@ -290,7 +290,7 @@ jobs:
name: Build Dart name: Build Dart
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1 - uses: dart-lang/setup-dart@v1
with: with:
sdk: stable sdk: stable