diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 3a3306d..5f39a58 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -8,6 +8,8 @@ updates:
github-actions:
patterns:
- "*"
+ cooldown:
+ default-days: 7
- package-ecosystem: maven
directory: /
@@ -17,6 +19,8 @@ updates:
maven:
patterns:
- "*"
+ cooldown:
+ default-days: 7
- package-ecosystem: gradle
directory: /intellij-plugin
@@ -26,6 +30,8 @@ updates:
gradle:
patterns:
- "*"
+ cooldown:
+ default-days: 7
- package-ecosystem: npm
directory: /vscode-extension
@@ -35,3 +41,5 @@ updates:
npm:
patterns:
- "*"
+ cooldown:
+ default-days: 7
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e107cdf..f46af7c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Set up JDK 17
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
@@ -39,6 +41,8 @@ jobs:
needs: server
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Set up JDK 17
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
@@ -55,7 +59,9 @@ jobs:
with:
distribution: temurin
java-version: '17'
- cache: gradle
+
+ - name: Setup Gradle
+ uses: gradle/actions/setup-gradle@v6
- name: Build plugin
working-directory: intellij-plugin
@@ -87,6 +93,8 @@ jobs:
target: darwin-arm64
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Set up JDK 17
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
@@ -114,3 +122,27 @@ jobs:
with:
name: vscode-extension-${{ matrix.target }}
path: vscode-extension/*.vsix
+
+ lint-github-actions:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - name: Lint GitHub actions with Zizmor
+ uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
+ with:
+ advanced-security: false
+
+ merge-gate:
+ name: Merge Gate
+ runs-on: ubuntu-slim
+ needs:
+ - server
+ - plugin
+ - vscode-extension
+ - lint-github-actions
+ steps:
+ - run: echo "Success"
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 18b8cdd..078c34a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -3,9 +3,6 @@ name: Release
on:
workflow_dispatch:
-permissions:
- contents: write
-
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
@@ -14,6 +11,8 @@ jobs:
vscode-packages:
name: Build VS Code extension (${{ matrix.target }})
runs-on: ${{ matrix.os }}
+ permissions:
+ contents: read
strategy:
fail-fast: true
matrix:
@@ -31,13 +30,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Fail if not running on main branch
if: ${{ github.ref != 'refs/heads/main' }}
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- with:
- script: |
- core.setFailed('This workflow must run on main. Current ref: ${{ github.ref }}')
+ run: |
+ echo This workflow must run on main. Current ref: $GITHUB_REF
+ exit 1
+ env:
+ GITHUB_REF: ${{ github.ref }}
- name: Set up JDK 17 for Maven
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
@@ -70,6 +72,8 @@ jobs:
release:
runs-on: ubuntu-latest
needs: vscode-packages
+ permissions:
+ contents: write
defaults:
run:
shell: bash
@@ -79,13 +83,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Fail if not running on main branch
if: ${{ github.ref != 'refs/heads/main' }}
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- with:
- script: |
- core.setFailed('This workflow must run on main. Current ref: ${{ github.ref }}')
+ run: |
+ echo This workflow must run on main. Current ref: $GITHUB_REF
+ exit 1
+ env:
+ GITHUB_REF: ${{ github.ref }}
- name: Set up JDK 17 for Maven
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
@@ -102,7 +109,9 @@ jobs:
with:
distribution: temurin
java-version: '17'
- cache: gradle
+
+ - name: Setup Gradle
+ uses: gradle/actions/setup-gradle@v6
- name: Build plugin distribution
working-directory: intellij-plugin
@@ -135,4 +144,3 @@ jobs:
npx --yes ovsx publish "$package"
done
-
diff --git a/.github/zizmor.yml b/.github/zizmor.yml
new file mode 100644
index 0000000..292892f
--- /dev/null
+++ b/.github/zizmor.yml
@@ -0,0 +1,7 @@
+rules:
+ unpinned-uses:
+ config:
+ policies:
+ "actions/*": ref-pin
+ "gradle/actions/setup-gradle": ref-pin
+ "*": hash-pin
diff --git a/pom.xml b/pom.xml
index b04ff00..1244384 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@
1.0.0
- 4.10.0
+ 4.11.0
2.8.1
6.1.3
3.27.7
@@ -141,10 +141,25 @@
${maven-compiler-plugin.version}
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ 3.11.0
+
+
+
+ properties
+
+
+
+
org.apache.maven.plugins
maven-surefire-plugin
${maven-surefire-plugin.version}
+
+ -javaagent:${org.mockito:mockito-core:jar} ${argLine}
+
@@ -203,6 +218,23 @@
+
+ org.itsallcode
+ openfasttrace-maven-plugin
+ 3.1.0
+
+
+ trace-requirements
+
+ trace
+
+
+
+
+
+ true
+
+