diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9a61748..0c4386b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,9 +4,13 @@ updates: directory: "/" schedule: interval: "weekly" + cooldown: + default-days: 7 - package-ecosystem: "npm" directory: "/" schedule: interval: "weekly" open-pull-requests-limit: 10 + cooldown: + default-days: 7 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b38a94..6092d75 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 @@ -45,6 +47,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 @@ -66,6 +70,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 @@ -90,6 +96,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 800de18..3114ce8 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: @@ -40,8 +41,8 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: "22.14.0" - cache: 'pnpm' # No registry-url - using OIDC trusted publishing instead + # No cache - mitigates cache-poisoning risk in publish workflow - name: Update npm for trusted publishing run: npm install -g npm@latest @@ -111,7 +112,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)