Skip to content

Commit d029913

Browse files
committed
Improve the workflow
1 parent 83cb8b8 commit d029913

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/actionlint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ permissions:
77
contents: read
88
pull-requests: write
99

10+
concurrency:
11+
group: actionlint-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
lint:
1216
runs-on: ubuntu-latest

.github/workflows/scorecard.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ permissions:
1111
jobs:
1212
analyze:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 20
1415
steps:
1516
- uses: actions/checkout@v4
1617
with:
18+
# Checkout the base repository ref, not the PR's head commit
19+
ref: ${{ github.event.pull_request.base.sha }}
1720
persist-credentials: false
1821
- name: 'Run Scorecard'
1922
uses: ossf/[email protected]

0 commit comments

Comments
 (0)