Skip to content

Commit 5bc87a0

Browse files
authored
Merge pull request #584 from aws-powertools/hjgraca-build-pipeline
chore: Update build pipeline
2 parents 18df0fd + 5f2078d commit 5bc87a0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ defaults:
1010
run:
1111
working-directory: ./libraries
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
build:
1518
runs-on: ubuntu-latest
1619

1720
steps:
1821
- uses: actions/checkout@v3
1922
- name: Setup .NET 6.0 & 8.0
20-
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a
23+
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # 4.0.0
2124
with:
2225
dotnet-version: |
2326
6.0.405
@@ -29,11 +32,12 @@ jobs:
2932
- name: Test & Code Coverage
3033
run: dotnet test --collect:"XPlat Code Coverage" --results-directory ./codecov --verbosity normal
3134
- name: Codecov
32-
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # 3.1.0
35+
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # 4.3.1
36+
env:
37+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3338
with:
34-
token: ${{ secrets.CODECOV_TOKEN }}
3539
flags: unittests
36-
fail_ci_if_error: true
40+
fail_ci_if_error: false
3741
name: codecov-lambda-powertools-dotnet
3842
verbose: true
3943
directory: ./libraries/codecov

0 commit comments

Comments
 (0)