Skip to content

Commit 85c5bab

Browse files
authored
Merge pull request #243 from nanotaboada/feature/github-actions-versions
chore(ci): pin GitHub Actions to specific versions
2 parents 5df93de + fcfa5d1 commit 85c5bab

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ updates:
66
directory: "/src/Dotnet.Samples.AspNetCore.WebApi"
77
schedule:
88
interval: "daily"
9+
commit-message:
10+
include: scope
11+
prefix: "chore(deps): bump "
912
groups:
1013
efcore:
1114
patterns:
@@ -18,8 +21,14 @@ updates:
1821
directory: "/test/Dotnet.Samples.AspNetCore.WebApi.Tests"
1922
schedule:
2023
interval: "daily"
24+
commit-message:
25+
include: scope
26+
prefix: "chore(deps): bump "
2127

2228
- package-ecosystem: "github-actions"
2329
directory: "/"
2430
schedule:
2531
interval: "daily"
32+
commit-message:
33+
include: scope
34+
prefix: "chore(deps): bump "

.github/workflows/dotnet.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v4.2.2
2525

2626
- name: Set up .NET ${{ env.DOTNET_VERSION }}
27-
uses: actions/setup-dotnet@v4
27+
uses: actions/setup-dotnet@v4.3.1
2828
with:
2929
dotnet-version: ${{ env.DOTNET_VERSION }}
3030
# The action searches for packages.lock.json in the repository root,
@@ -47,10 +47,10 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout repository
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@v4.2.2
5151

5252
- name: Lint commit messages
53-
uses: wagoid/commitlint-github-action@v6
53+
uses: wagoid/commitlint-github-action@v6.2.1
5454

5555
- name: Run tests and generate Cobertura coverage reports
5656
run: dotnet test --results-directory "coverage" --collect:"XPlat Code Coverage" --settings .runsettings
@@ -71,7 +71,7 @@ jobs:
7171
run: cat coverage/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
7272

7373
- name: Upload Cobertura coverage report artifact
74-
uses: actions/upload-artifact@v4
74+
uses: actions/upload-artifact@v4.6.2
7575
with:
7676
name: cobertura.xml
7777
path: coverage/cobertura.xml
@@ -84,10 +84,10 @@ jobs:
8484
service: [codecov, codacy]
8585
steps:
8686
- name: Checkout repository
87-
uses: actions/checkout@v4
87+
uses: actions/checkout@v4.2.2
8888

8989
- name: Download Cobertura coverage report artifact
90-
uses: actions/download-artifact@v4
90+
uses: actions/download-artifact@v4.3.0
9191
with:
9292
name: cobertura.xml
9393

@@ -117,20 +117,20 @@ jobs:
117117

118118
steps:
119119
- name: Checkout repository
120-
uses: actions/checkout@v4
120+
uses: actions/checkout@v4.2.2
121121

122122
- name: Log in to GitHub Container Registry
123-
uses: docker/login-action@v3
123+
uses: docker/login-action@v3.4.0
124124
with:
125125
registry: ghcr.io
126126
username: ${{ github.actor }}
127127
password: ${{ secrets.GITHUB_TOKEN }}
128128

129129
- name: Set up Docker Buildx
130-
uses: docker/setup-buildx-action@v3
130+
uses: docker/setup-buildx-action@v3.10.0
131131

132132
- name: Build and push Docker image to GitHub Container Registry
133-
uses: docker/build-push-action@v6
133+
uses: docker/build-push-action@v6.17.0
134134
with:
135135
context: .
136136
push: true

0 commit comments

Comments
 (0)