diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6cdbbbb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,25 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "ci" + labels: + - "dependencies" + - "github-actions" + cooldown: + default-days: 7 + + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "deps" + labels: + - "dependencies" + open-pull-requests-limit: 10 + cooldown: + default-days: 7 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4b21f0..319e43f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Setup pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 @@ -42,6 +44,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Setup pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 @@ -65,6 +69,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Setup pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f79b0b6..b95fc2f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 # Fetch all history for changelog generation + persist-credentials: false - name: Verify tag is on main branch env: @@ -42,7 +43,6 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: "22.14.0" - cache: 'pnpm' # Trusted publishing (OIDC) is an npm-registry feature; keep the # publish step on the npm CLI even though deps use pnpm. @@ -114,7 +114,7 @@ jobs: echo "Generating changelog from $PREV_TAG to $GITHUB_REF_NAME" # Extract commits with PR numbers and format them # Use tab as delimiter to safely handle semicolons and special characters - COMMITS=$(git log ${PREV_TAG}..HEAD --pretty=format:"%s %h" --no-merges) + COMMITS=$(git log "${PREV_TAG}..HEAD" --pretty=format:"%s %h" --no-merges) else echo "No previous tag found, using all commits" COMMITS=$(git log --pretty=format:"%s %h" --no-merges)