Skip to content

Commit 28e785a

Browse files
Copilotcoliff
andcommitted
chore: update packages, GitHub Actions, Dependabot config, add AGENTS.md
Co-authored-by: coliff <1212885+coliff@users.noreply.github.com>
1 parent 9b95f52 commit 28e785a

7 files changed

Lines changed: 732 additions & 454 deletions

File tree

.github/AGENTS.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Agents
2+
3+
<!-- https://agents.md -->
4+
5+
## GitHub Actions Workflows
6+
7+
- Always use the latest version
8+
- YML files should begin with --- on the first line.
9+
- All GitHub Actions should use SHA-1 pinned versions.
10+
- All should be formatted with Prettier.
11+
- If using `actions/checkout`, it should have `persist-credentials: false` set.
12+
- GitHub Actions should have a cooldown period of 7 days.
13+
14+
## Dependabot
15+
16+
- GitHub Actions updates should be grouped and updated monthly.
17+
- npm packages should be grouped and updated monthly.
18+
- Limit number of Dependabot PRs to be open to 2.
19+
- Dependabot config should be formatted with Prettier.
20+
- Dependencies should have a cooldown period of 7 days

.github/dependabot.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updates:
33
- package-ecosystem: npm
44
directory: "/"
55
schedule:
6-
interval: weekly
6+
interval: monthly
77
cooldown:
88
default-days: 7
99
labels:
@@ -16,14 +16,16 @@ updates:
1616
- "minor"
1717
- "patch"
1818
versioning-strategy: increase
19-
open-pull-requests-limit: 1
19+
open-pull-requests-limit: 2
2020

2121
- package-ecosystem: github-actions
2222
directory: "/"
2323
schedule:
2424
interval: monthly
25+
cooldown:
26+
default-days: 7
2527
groups:
2628
github-actions:
2729
patterns:
2830
- "*"
29-
open-pull-requests-limit: 1
31+
open-pull-requests-limit: 2

.github/workflows/azure-static-web-apps-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
persist-credentials: false
2323

2424
- name: Setup Hugo
25-
uses: peaceiris/actions-hugo@v3
25+
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
2626
with:
2727
hugo-version: '0.145.0'
2828
extended: true
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Build And Deploy
4747
id: builddeploy
48-
uses: Azure/static-web-apps-deploy@v1
48+
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9 # v1
4949
with:
5050
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_ROCK_075179F10 }}
5151
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
@@ -64,7 +64,7 @@ jobs:
6464
steps:
6565
- name: Close Pull Request
6666
id: closepullrequest
67-
uses: Azure/static-web-apps-deploy@v1
67+
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9 # v1
6868
with:
6969
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_ROCK_075179F10 }}
7070
action: "close"

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
persist-credentials: false
1616

1717
- name: "Dependency Review"
18-
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.7
18+
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0

.github/workflows/sonar-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
node-version: 18
3131

3232
- name: Run Sonar Scan Action
33-
uses: sonarsource/sonarqube-scan-action@master
33+
uses: sonarsource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9 # v7.0.0
3434
env:
3535
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3636
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

0 commit comments

Comments
 (0)