From b2e58c597e1beb518425b25d7a97efd971e15036 Mon Sep 17 00:00:00 2001 From: Erik van Brakel Date: Tue, 6 Feb 2024 13:59:29 +0100 Subject: [PATCH 1/3] Update action versions --- .github/workflows/publish.yml | 16 ++++++++-------- .github/workflows/run-tests.yml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 105dbc8..2ff4524 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,12 +6,12 @@ on: jobs: build-tests: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: '5.0.x' - name: Build @@ -29,13 +29,13 @@ jobs: publish-nuget: name: Release - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: build-tests - + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: '5.0.x' @@ -46,7 +46,7 @@ jobs: run: dotnet build --configuration Release --no-restore - name: Publish to NuGet - uses: brandedoutcast/publish-nuget@v2 + uses: brandedoutcast/publish-nuget@v2.5.5 with: PROJECT_FILE_PATH: Bynder/Sdk/Bynder.Sdk.csproj VERSION_REGEX: '^\s*(.*)<\/PackageVersion>\s*$' diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index d99e9b2..c7ac438 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -6,12 +6,12 @@ on: [ push, pull_request ] jobs: build: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: '5.0.x' - name: Build @@ -21,7 +21,7 @@ jobs: run: dotnet test --no-build --configuration Release /p:CollectCoverage=true /p:CoverletOutputFormat=lcov - name: Publish coverage report to Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v2.2.3 with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: ./Bynder/Test/coverage.info From 900f5744add6984bed5f19a6ab8d137b7a1e582b Mon Sep 17 00:00:00 2001 From: Erik van Brakel Date: Tue, 6 Feb 2024 14:08:42 +0100 Subject: [PATCH 2/3] Narrow down permissions --- .github/workflows/publish.yml | 5 +++++ .github/workflows/run-tests.yml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2ff4524..f18bd54 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,13 @@ name: Publish + on: release: types: [ published ] +permissions: + contents: read + pull-requests: write + jobs: build-tests: name: Tests diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c7ac438..5939b7f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,6 +2,9 @@ name: Tests on: [ push, pull_request ] +permissions: + contents: read + pull-requests: write jobs: build: From c04c8eda085cb5a2e6f36042c59740bb07f55efb Mon Sep 17 00:00:00 2001 From: ahongbynder Date: Fri, 20 Sep 2024 09:31:42 -0700 Subject: [PATCH 3/3] update dotnet version --- .github/workflows/publish.yml | 4 ++-- .github/workflows/run-tests.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f18bd54..59ba04a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: '5.0.x' + dotnet-version: '8.0.x' - name: Build run: dotnet build --configuration Release @@ -42,7 +42,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: '5.0.x' + dotnet-version: '8.0.x' - name: Install dependencies run: dotnet restore diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5939b7f..baae587 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: '5.0.x' + dotnet-version: '8.0.x' - name: Build run: dotnet build --configuration Release