Skip to content

Commit 25ee6e8

Browse files
authored
chore: add "github" to the list of danger action-check whitelist users (#55)
1 parent ec76ec3 commit 25ee6e8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Features
6+
7+
- Danger - add "github" to the list of whitelisted users for action-pinning check ([#55](https://github.com/getsentry/github-workflows/pull/55))
8+
39
## 2.5.1
410

511
### Fixes

danger/dangerfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async function checkActionsArePinned() {
149149
/^\+? *uses: *(?<user>[^\/]+)\/(?<action>[^@]+)@(?<ref>[^ ]*)/;
150150
const usesLocalRegex = /^\+? *uses: *\.\//; // e.g. 'uses: ./.github/actions/something'
151151
const shaRegex = /^[a-f0-9]{40}$/;
152-
const whitelistedUsers = ["getsentry", "actions"];
152+
const whitelistedUsers = ["getsentry", "actions", "github"];
153153

154154
for (const path of workflowFiles) {
155155
const diff = await danger.git.structuredDiffForFile(path);

0 commit comments

Comments
 (0)