Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const actionRegex = /[\w-]+\/[\w-]+@[\w-]+/
// Detects a full-length commit SHA (40 hexadecimal characters)
const shaRegex = /[\w-]+\/[\w-]+@[0-9a-fA-F]{40}/
// Detects first-party actions
const firstPartyPrefixes = ['actions/', 'github/', 'octo-org/', 'OWNER/']
const firstPartyPrefixes = ['actions/', './.github/actions/', 'github/', 'octo-org/', 'OWNER/']

export const thirdPartyActionPinning = {
names: ['GHD041', 'third-party-action-pinning'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe(thirdPartyActionPinning.names.join(' - '), () => {
' build:',
' runs-on: ubuntu-latest',
' steps:',
' - uses: actions/javascript-action@main',
' - uses: ./.github/actions/javascript-action@main',
'```',
].join('\n')
const result = await runRule(thirdPartyActionPinning, { strings: { markdown } })
Expand Down
Loading