File tree 1 file changed +53
-0
lines changed
1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ Update Dependencies GitHub Action
2
+
3
+ name : Update Action Dependencies
4
+
5
+ on :
6
+ schedule :
7
+ # Runs at 00:00 UTC every Sunday
8
+ - cron : ' 0 0 * * 0'
9
+ workflow_dispatch :
10
+ # Allows manual triggering
11
+
12
+ jobs :
13
+ update-dependencies :
14
+ runs-on : ubuntu-latest
15
+ permissions :
16
+ contents : write
17
+ pull-requests : write
18
+
19
+ steps :
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Setup Node.js
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : ' 20'
27
+
28
+ - name : Install octokit
29
+ run : npm install @octokit/action
30
+
31
+ # Node.js script can be anywhere. A good convention is to put local GitHub Actions
32
+ # into the `.github/actions` folder
33
+ - name : Update action dependencies
34
+ id : update
35
+ run : |
36
+ node .github/actions/update-dependencies.js
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+
40
+ - name : Create pull request
41
+ uses : peter-evans/create-pull-request@v6
42
+ with :
43
+ commit-message : " chore: pin dependent actions to latest stable tags' SHA"
44
+ title : " ⬆️ Update dependent actions to latest stable tags"
45
+ body : |
46
+ This PR was automatically generated to update all dependent GitHub Actions to use the commit SHA of their latest stable tag.
47
+
48
+ This helps ensure security and reliability by pinning to specific commit SHAs rather than tags or branch names.
49
+ branch : update-actions-pins
50
+ delete-branch : true
51
+ labels : |
52
+ dependencies
53
+ automated
You can’t perform that action at this time.
0 commit comments