Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3e20041
Renamed unit search usage
annadruid Mar 26, 2025
d9092dc
Update configuration
hel-platta-service Mar 26, 2025
7ecae6f
Merge pull request #1062 from City-of-Helsinki/update-configuration
khalima Mar 26, 2025
8f42764
Update configuration
hel-platta-service Mar 27, 2025
366e085
Merge pull request #1064 from City-of-Helsinki/update-configuration
annadruid Mar 27, 2025
10fca04
Merge pull request #1061 from City-of-Helsinki/UHF-X-unit-search-rename
annadruid Mar 27, 2025
2617672
UHF-11514: Add missing Finnish translation configuration for the dist…
teroelonen Mar 28, 2025
ffe3a1c
UHF-11514: Add one more missing translation for project status field
teroelonen Mar 28, 2025
2a7bae3
UHF-11514: Add missing translations for project content type
teroelonen Mar 28, 2025
4d5e58b
Test npm-audit
tuutti Mar 31, 2025
9218c5e
Use correct action
tuutti Mar 31, 2025
6abc413
Updated node modules based on npm audit fix
tuutti Mar 31, 2025
1c70ce4
Use correct version
tuutti Mar 31, 2025
52d6b10
Merge pull request #1066 from City-of-Helsinki/UHF-X-update-actions
tuutti Mar 31, 2025
c145de8
UHF-11292: Started with accessibility changes for list of plans
annadruid Apr 1, 2025
b3e82be
Merge pull request #1065 from City-of-Helsinki/UHF-11514
teroelonen Apr 1, 2025
77a56ae
Update configuration
hel-platta-service Apr 1, 2025
89df98e
Merge pull request #1068 from City-of-Helsinki/update-configuration
teroelonen Apr 1, 2025
6a8a956
Update configuration
hel-platta-service Apr 1, 2025
5c0f959
Merge pull request #1070 from City-of-Helsinki/update-configuration
teroelonen Apr 1, 2025
4a5ba29
UHF-11292: Changed card template, fixed subscription url
annadruid Apr 3, 2025
9ca347a
UHF-11292: Fixed linter errors
annadruid Apr 3, 2025
5051e11
UHF-11292: Removed js files
annadruid Apr 3, 2025
901e4ea
UHF-11292: Added comment to scss file
annadruid Apr 3, 2025
e2094de
Update configuration
hel-platta-service Apr 3, 2025
7c8cc5a
Merge branch 'dev' into automation/npm-audit
khalima Apr 3, 2025
0bf8e93
Merge pull request #1069 from City-of-Helsinki/UHF-11292
annadruid Apr 3, 2025
cac9f3a
Fixed coding styles.
khalima Apr 3, 2025
09e3ce8
Merge branch 'dev' of github.com:City-of-Helsinki/drupal-helfi-kymp i…
khalima Apr 3, 2025
a01ba57
Merge pull request #1054 from City-of-Helsinki/automation/npm-audit
khalima Apr 3, 2025
4cdcc0e
Merge pull request #1071 from City-of-Helsinki/update-configuration
annadruid Apr 3, 2025
0c41cae
Update configuration
hel-platta-service Apr 3, 2025
826fd8b
Merge pull request #1072 from City-of-Helsinki/update-configuration
annadruid Apr 3, 2025
7acbec1
Update configuration
hel-platta-service Apr 8, 2025
8e3248c
Merge pull request #1073 from City-of-Helsinki/update-configuration
annadruid Apr 8, 2025
c67fd4c
Update configuration
hel-platta-service Apr 8, 2025
3f7be23
Merge pull request #1074 from City-of-Helsinki/update-configuration
annadruid Apr 8, 2025
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
61 changes: 1 addition & 60 deletions .github/workflows/npm-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,4 @@ on:

jobs:
npm_audit:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run npm audit
id: npm_audit
run: |
find public/modules/custom public/themes/custom -type f -name ".nvmrc" -exec sh -c '
dir=$(dirname "$1")
node_version=$(cat "$1")
echo "Using Node.js version $node_version in $dir"
cd "$dir"
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install $node_version
nvm use $node_version
set +e
npm audit --package-lock-only --loglevel=error;
# The npm audit command will exit with a 0 exit code if no vulnerabilities were found.
if [ $? -gt 0 ]; then
npm audit fix --package-lock-only --loglevel=error;
if [ $? -gt 0 ]; then
echo "BC_BREAK=:exclamation: NPM Audit fix could not fix all vulnerabilities. Fix them manually by running \`npm audit fix --force\` and test the functionalities thoroughly as there might be breaking changes. :exclamation:" >> $GITHUB_ENV;
fi;
echo "CREATE_PR=true" >> $GITHUB_OUTPUT;
fi;
set -e
' sh {} \;


- name: Create Pull Request
if: steps.npm_audit.outputs.CREATE_PR == 'true'
uses: peter-evans/create-pull-request@v4
with:
committer: GitHub <noreply@github.com>
author: actions-bot <actions-bot@users.noreply.github.com>
commit-message: Updated node modules based on npm audit fix
title: Automatic npm audit fix
labels: auto-update
body: |
# Npm audit

${{ env.BC_BREAK }}

## How to install

* Update the HDBT theme
* `git fetch --all`
* `git checkout automation/npm-audit`
* `git pull origin automation/npm-audit`
* In the custom module or custom theme folder, run `nvm use && npm i && npm run build`

## How to test
Run `npm audit`

* [ ] Check that the `npm audit` prints `found 0 vulnerabilities`
* [ ] Check that the changes for distributed files are sensible

branch: automation/npm-audit
uses: city-of-helsinki/drupal-gh-actions/.github/workflows/npm-audit.yml@main
2 changes: 1 addition & 1 deletion .platform/schema
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
17
Loading
Loading