diff --git a/.github/workflows/comment-pr.yml b/.github/workflows/comment-pr.yml index c45a0d36..9222c071 100644 --- a/.github/workflows/comment-pr.yml +++ b/.github/workflows/comment-pr.yml @@ -10,7 +10,7 @@ jobs: sonarr: runs-on: ubuntu-latest steps: - - uses: marocchino/sticky-pull-request-comment@v3 + - uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4 with: message: | Please check on sonarcloud that the PR does not add any issue. diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 0dab2f87..373e2be8 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -16,6 +16,6 @@ jobs: name: Validate PR title runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v6.1.1 + - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0a7be76..4372565f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Install semantic-release dependencies - run: npm install --ignore-scripts + run: npm ci --ignore-scripts - name: Run semantic-release run: npx semantic-release env: diff --git a/.github/workflows/validate-commit.yml b/.github/workflows/validate-commit.yml index 933f11ae..31741bb6 100644 --- a/.github/workflows/validate-commit.yml +++ b/.github/workflows/validate-commit.yml @@ -16,8 +16,8 @@ jobs: - name: Install commitlint run: | - npm install conventional-changelog-conventionalcommits@7.0.2 - npm install commitlint@19.7.1 + npm install --ignore-scripts conventional-changelog-conventionalcommits@7.0.2 + npm install --ignore-scripts commitlint@19.7.1 - name: Validate PR commits with commitlint run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose \ No newline at end of file diff --git a/metarParser-commons/src/test/java/io/github/mivek/internationalization/MessagesTest.java b/metarParser-commons/src/test/java/io/github/mivek/internationalization/MessagesTest.java index 60e9cdf9..8efb1b65 100644 --- a/metarParser-commons/src/test/java/io/github/mivek/internationalization/MessagesTest.java +++ b/metarParser-commons/src/test/java/io/github/mivek/internationalization/MessagesTest.java @@ -21,21 +21,21 @@ class MessagesTest { @Test - @SuppressWarnings("java:S1874") + @SuppressWarnings("java:S5738") void testSetLocale() { - Messages.getInstance().setLocale(Locale.FRENCH); + Messages.getInstance().setLocale(Locale.FRENCH); // NOSONAR java:S5738 assertEquals("peu", Messages.getInstance().getString("CloudQuantity.FEW")); - Messages.getInstance().setLocale(Locale.ENGLISH); + Messages.getInstance().setLocale(Locale.ENGLISH); // NOSONAR java:S5738 assertEquals("few", Messages.getInstance().getString("CloudQuantity.FEW")); - Messages.getInstance().clearLocale(); + Messages.getInstance().clearLocale(); // NOSONAR java:S5738 } @Test - @SuppressWarnings("java:S1874") + @SuppressWarnings("java:S5738") void testClearLocale() { - Messages.getInstance().setLocale(Locale.FRENCH); + Messages.getInstance().setLocale(Locale.FRENCH); // NOSONAR java:S5738 assertEquals("peu", Messages.getInstance().getString("CloudQuantity.FEW")); - Messages.getInstance().clearLocale(); + Messages.getInstance().clearLocale(); // NOSONAR java:S5738 assertDoesNotThrow(() -> Messages.getInstance().getString("CloudQuantity.FEW")); }