Skip to content

Commit fcc4641

Browse files
authored
fix: configure release tagger identity [policy] (#16)
Change-Id: If0f3da9d9beb01d3f308bbb9eb405d9fae2c39fe
1 parent 3dba7a4 commit fcc4641

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979
exit 1
8080
}
8181
else
82+
git config user.name "github-actions[bot]"
83+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
8284
git tag --annotate "${tag}" --message "${tag}"
8385
git push origin "${tag}"
8486
fi

scripts/open-source.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ describe("open-source repository invariants", () => {
138138
expect(workflow).toContain("id-token: write");
139139
expect(workflow).toContain("cancel-in-progress: false");
140140
expect(workflow).toContain("workflow_dispatch:");
141+
expect(workflow).toContain('git config user.name "github-actions[bot]"');
142+
expect(workflow).toContain("github-actions[bot]@users.noreply.github.com");
141143
});
142144

143145
test("public worktree has no high-confidence secrets or internal machine references", () => {

0 commit comments

Comments
 (0)