File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,27 @@ jobs:
2323 distribution : " temurin"
2424 cache : " maven"
2525
26+ - name : Verify GitHub token permissions
27+ run : |
28+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
29+ https://api.github.com/user | jq -r '.login'
30+
2631 - name : Set up settings.xml
2732 run : |
2833 mkdir -p ~/.m2
29- echo "<settings>
34+ echo '<?xml version="1.0" encoding="UTF-8"?>
35+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
36+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
37+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
38+ http://maven.apache.org/xsd/settings-1.0.0.xsd">
3039 <servers>
3140 <server>
3241 <id>github</id>
3342 <username>${{ secrets.GH_USERNAME }}</username>
3443 <password>${{ secrets.GITHUB_TOKEN }}</password>
3544 </server>
3645 </servers>
37- </settings>" > ~/.m2/settings.xml
46+ </settings>' > ~/.m2/settings.xml
3847
3948 - name : Cache Maven packages
4049 uses : actions/cache@v4
You can’t perform that action at this time.
0 commit comments