e9fc134236323ce3ce376715b1e55a54ed6ac7ac

Author
Marc Cornellà <marc@mcornella.com>
Committer
GitHub <noreply@github.com>
Date

Message

ci(dependencies): update job permissions, change commits to `chore` (#13457)

Diff

 1diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml
 2index 000589087b3f09004bd1cf4082209dfb96f08aa3..a21803ec617542a81774a4e33f18f2c573fb6007 100644
 3--- a/.github/workflows/dependencies.yml
 4+++ b/.github/workflows/dependencies.yml
 5@@ -4,14 +4,13 @@ on:
 6   schedule:
 7     - cron: "0 6 * * 0"
 8 
 9-permissions:
10-  contents: write
11-
12 jobs:
13   check:
14     name: Check for updates
15     runs-on: ubuntu-latest
16     if: github.repository == 'ohmyzsh/ohmyzsh'
17+    permissions:
18+      contents: write # this is needed to push commits and branches
19     steps:
20       - name: Harden the runner (Audit all outbound calls)
21         uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
22diff --git a/.github/workflows/dependencies/updater.py b/.github/workflows/dependencies/updater.py
23index aee15d9e06e625c5de353934169d33d1b7e63058..783161d6c8215b8896a090bc3f0c62a22f2383a5 100644
24--- a/.github/workflows/dependencies/updater.py
25+++ b/.github/workflows/dependencies/updater.py
26@@ -238,7 +238,7 @@ class Dependency:
27                             # Create GitHub PR
28                             GitHub.create_pr(
29                                 branch,
30-                                f"feat({self.name}): update to version {new_version}",
31+                                f"chore({self.name}): update to version {new_version}",
32                                 f"""## Description
33 
34 Update for **{self.desc}**: update to version [{new_version}]({status["head_url"]}).
35@@ -423,7 +423,7 @@ class Git:
36                 f"user.email={user_email}",
37                 "commit",
38                 "-m",
39-                f"feat({scope}): update to {version}",
40+                f"chore({scope}): update to {version}",
41             ],
42             stage="CreateCommit",
43             env=clean_env,