Skip to content

Commit

Permalink
fix: support comments when parsing pinned actions in Danger (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind authored Oct 3, 2022
1 parent ba2886c commit c5242b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Unreleased

## 2.2.1

### Fixes

- Support comments when parsing pinned actions in Danger ([#40](https://github.com/getsentry/github-workflows/pull/40))


## 2.2.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion danger/dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function checkActionsArePinned() {

const usesRegex = /^\+? *uses:/;
const usesActionRegex =
/^\+? *uses: *(?<user>[^\/]+)\/(?<action>[^@]+)@(?<ref>.*)/;
/^\+? *uses: *(?<user>[^\/]+)\/(?<action>[^@]+)@(?<ref>[^ ]*)/;
const shaRegex = /^[a-f0-9]{40}$/;
const whitelistedUsers = ["getsentry", "actions"];

Expand Down

0 comments on commit c5242b6

Please sign in to comment.