Skip to content

Commit 0995934

Browse files
Harvester57tyrasd
andauthored
Update Actions in CI and add Dependabot configuration (#1843)
Co-authored-by: Martin Raifer <martin@raifer.tech>
1 parent acc4a45 commit 0995934

File tree

8 files changed

+32
-34
lines changed

8 files changed

+32
-34
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ updates:
1010
schedule:
1111
interval: "daily"
1212
versioning-strategy: increase-if-necessary
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "daily"

.github/workflows/build-preview.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
build-preview:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1717
with:
1818
node-version-file: '.nvmrc'
1919
- run: npm clean-install
2020
- run: npm run dist
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2222
with:
2323
repository: openstreetmap/iD
2424
path: './iD'
@@ -33,7 +33,7 @@ jobs:
3333
env:
3434
ID_PRESETS_CDN_URL: '../../'
3535

36-
- uses: actions/upload-artifact@v4
36+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3737
with:
3838
name: preview
3939
path: |
@@ -43,7 +43,7 @@ jobs:
4343
- name: Store pull request number for later use
4444
run: |
4545
echo ${{github.event.number}} > ./pr_number
46-
- uses: actions/upload-artifact@v4
46+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
4747
with:
4848
name: pr
4949
path: ./pr_number

.github/workflows/deploy-preview.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: ${{github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'}}
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1717
with:
18-
node-version: '18'
18+
node-version-file: '.nvmrc'
1919
- run: npm clean-install
2020

2121
- name: Get pull request number
22-
uses: actions/github-script@v7
22+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2323
id: pull-request-number
2424
with:
2525
result-encoding: string
@@ -46,7 +46,7 @@ jobs:
4646
const file = directory.files.find(d => d.path === 'pr_number');
4747
const content = await file.buffer();
4848
return content.toString();
49-
- uses: dawidd6/action-download-artifact@v8
49+
- uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
5050
with:
5151
github_token: ${{secrets.GITHUB_TOKEN}}
5252
workflow: build-preview.yml
@@ -61,7 +61,7 @@ jobs:
6161
run: ./node_modules/.bin/netlify deploy --no-build --dir=. --alias=pr-${{steps.pull-request-number.outputs.result}}
6262

6363
- name: Add comment to pull request
64-
uses: actions/github-script@v7
64+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6565
with:
6666
script: |
6767
const pullRequestNumber = parseInt(${{steps.pull-request-number.outputs.result}}, 10);
@@ -87,7 +87,7 @@ jobs:
8787
}
8888

8989
- name: Clean up artifact
90-
uses: actions/github-script@v7
90+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
9191
with:
9292
result-encoding: string
9393
script: |

.github/workflows/deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ jobs:
1515
if: github.repository == 'openstreetmap/id-tagging-schema'
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4 # If you're using actions/checkout@v3 you must set persist-credentials to false in most cases for the deployment to work correctly.
19-
with:
20-
persist-credentials: false
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2119

2220
- name: Set up Node.js
23-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2422
with:
2523
node-version-file: '.nvmrc'
2624

@@ -31,7 +29,7 @@ jobs:
3129
run: npm run build
3230

3331
- name: Deploy 🚀
34-
uses: JamesIves/github-pages-deploy-action@v4
32+
uses: JamesIves/github-pages-deploy-action@4a3abc783e1a24aeb44c16e869ad83caf6b4cc23 # v4.7.4
3533
with:
36-
branch: interim # The branch the action should deploy to.
37-
folder: interim # The folder the action should deploy.
34+
branch: interim
35+
folder: interim

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
name: Check file endings
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
99
- run: |
1010
disallowedFiles=`find data/ -type f -not -iname "*.json" -not -iname "*.md"`
1111
for f in $disallowedFiles
@@ -18,8 +18,8 @@ jobs:
1818
name: Check for code formatting mistakes
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
22-
- uses: actions/setup-node@v4
21+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
22+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2323
with:
2424
node-version-file: '.nvmrc'
2525
- run: npm clean-install
@@ -29,7 +29,7 @@ jobs:
2929
name: Check for spelling errors
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3333
- uses: codespell-project/actions-codespell@v2
3434
with:
3535
check_filenames: true

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contents: write
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: release-drafter/release-drafter@v6
17+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
1818
with:
1919
disable-autolabeler: true
2020
env:

.github/workflows/staging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414
environment: staging
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
16+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
17+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1818
with:
1919
node-version-file: '.nvmrc'
2020
# install and build development version of id-tagging-schema
@@ -25,7 +25,7 @@ jobs:
2525
if: env.transifex_password != null
2626
- run: npm run dist
2727
# install and build development version of iD using freshest version of presets and ELI
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2929
with:
3030
repository: openstreetmap/id
3131
path: './iD'

.github/workflows/test.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ jobs:
1313
test:
1414
runs-on: ubuntu-latest
1515

16-
strategy:
17-
matrix:
18-
node-version: ['18']
19-
2016
steps:
21-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2218
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2420
with:
25-
node-version: ${{ matrix.node-version }}
21+
node-version-file: '.nvmrc'
2622
- run: npm clean-install
2723
- run: npm run test

0 commit comments

Comments
 (0)