Skip to content

Commit c8e459a

Browse files
committed
fix(ci): pin actions to SHAs, scope commitlint, remove Qlty
1 parent 49e461e commit c8e459a

File tree

4 files changed

+14
-20
lines changed

4 files changed

+14
-20
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
name: build
22
on: [push, pull_request]
33

4-
permissions: {}
5-
64
jobs:
75
build:
8-
permissions:
9-
id-token: write
10-
contents: read
116
runs-on: ubuntu-latest
127

138
steps:
149
- name: Checkout repository
15-
uses: actions/checkout@v5
10+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1611

1712
- name: Use Node.js
18-
uses: actions/setup-node@v6
13+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1914
with:
2015
cache: yarn
2116
node-version-file: .nvmrc
@@ -28,9 +23,3 @@ jobs:
2823

2924
- name: Run Tests
3025
run: yarn test:coverage
31-
32-
- name: Upload coverage to Qlty
33-
uses: qltysh/qlty-action/coverage@v2
34-
with:
35-
oidc: true
36-
files: coverage/lcov.info

.github/workflows/commitlint.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77

88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v5
10+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1111
with:
1212
fetch-depth: 0
1313

1414
- name: Use Node.js
15-
uses: actions/setup-node@v6
15+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1616
with:
1717
cache: yarn
1818
node-version-file: .nvmrc
@@ -21,4 +21,9 @@ jobs:
2121
run: yarn
2222

2323
- name: Lint commit message
24-
run: yarn commitlint --from=HEAD~1
24+
run: |
25+
if [ "${{ github.event_name }}" = "pull_request" ]; then
26+
yarn commitlint --from=${{ github.event.pull_request.base.sha }} --to=${{ github.event.pull_request.head.sha }}
27+
else
28+
yarn commitlint --from=HEAD~1
29+
fi

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Autoclose issues that did not follow issue template
8-
uses: roots/issue-closer@v1.2
8+
uses: roots/issue-closer@fec85f2a845cd6cf33eda6e6a4c93026e71f86d1 # v1.2
99
with:
1010
repo-token: ${{ secrets.GH_TOKEN }}
1111
issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow one of the available issue templates. See [here](https://github.com/lawnstarter/react-native-picker-select/issues/new/choose) for available options."

.github/workflows/release-please.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Release Please
15-
uses: google-github-actions/release-please-action@v4
15+
uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4
1616
id: release
1717
with:
1818
token: ${{ secrets.GH_TOKEN }}
@@ -24,10 +24,10 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v5
27+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
2828

2929
- name: Use Node.js
30-
uses: actions/setup-node@v6
30+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
3131
with:
3232
registry-url: https://registry.npmjs.org
3333

0 commit comments

Comments
 (0)