Skip to content

Commit 7bce703

Browse files
committed
fix(release): move release-please config out of workflows dir (SEC-76)
🔒 Scanned for secrets using gitleaks 8.30.0
1 parent 04033cc commit 7bce703

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed
File renamed without changes.
File renamed without changes.

.github/workflows/release-please.yaml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,40 @@ on:
44
- "release/*"
55
- "main"
66
name: release-please
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
712
jobs:
813
release-please:
914
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
1018
steps:
1119
- name: Harden the runner (Audit all outbound calls)
12-
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
20+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
1321
with:
1422
egress-policy: audit
1523

24+
- name: Extract branch name
25+
shell: bash
26+
run: echo "branch=$(echo "${GITHUB_REF#refs/heads/}")" >> $GITHUB_OUTPUT
27+
id: extract_branch
28+
1629
- name: Generate GitHub App Token
1730
id: generate-token
18-
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
31+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
1932
with:
2033
app-id: ${{ vars.RELEASE_APP_ID }}
2134
private-key: ${{ secrets.RELEASE_PRIVATE_KEY }}
22-
permission-contents: write # to create release commits and tags
23-
permission-pull-requests: write # to create release PRs
35+
permission-contents: write
36+
permission-pull-requests: write
2437

25-
- name: Extract branch name
26-
shell: bash
27-
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
28-
id: extract_branch
2938
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
3039
with:
3140
token: ${{ steps.generate-token.outputs.token }}
3241
target-branch: ${{ steps.extract_branch.outputs.branch }}
33-
config-file: .github/workflows/release-please-config.json
34-
manifest-file: .github/workflows/.release-please-manifest.json
42+
config-file: .github/release-please-config.json
43+
manifest-file: .github/.release-please-manifest.json

0 commit comments

Comments
 (0)