mirror of
				https://github.com/actions/setup-java.git
				synced 2025-11-04 08:20:54 +00:00 
			
		
		
		
	changed passhprase configuration to be more in line with docs
This commit is contained in:
		
					parent
					
						
							
								9098ec5f8b
							
						
					
				
			
			
				commit
				
					
						1d7ec38fd8
					
				
			
		
					 4 changed files with 20 additions and 50 deletions
				
			
		
							
								
								
									
										28
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										28
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -134,16 +134,10 @@ The two `settings.xml` files created from the above example look like the follow
 | 
			
		|||
      <username>${env.GITHUB_ACTOR}</username>
 | 
			
		||||
      <password>${env.GITHUB_TOKEN}</password>
 | 
			
		||||
    </server>
 | 
			
		||||
    <profiles>
 | 
			
		||||
      <profile>
 | 
			
		||||
        <activation>
 | 
			
		||||
          <activeByDefault>true</activeByDefault>
 | 
			
		||||
        </activation>
 | 
			
		||||
        <properties>
 | 
			
		||||
          <gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
 | 
			
		||||
        </properties>
 | 
			
		||||
      </profile>
 | 
			
		||||
    <profiles>
 | 
			
		||||
    <server>
 | 
			
		||||
      <id>gpg.passphrase</id>
 | 
			
		||||
      <passphrase>${env.GPG_PASSPHRASE}</passphrase>
 | 
			
		||||
    </server>
 | 
			
		||||
</servers>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -155,16 +149,10 @@ The two `settings.xml` files created from the above example look like the follow
 | 
			
		|||
      <username>${env.MAVEN_USERNAME}</username>
 | 
			
		||||
      <password>${env.MAVEN_CENTRAL_TOKEN}</password>
 | 
			
		||||
    </server>
 | 
			
		||||
    <profiles>
 | 
			
		||||
      <profile>
 | 
			
		||||
        <activation>
 | 
			
		||||
          <activeByDefault>true</activeByDefault>
 | 
			
		||||
        </activation>
 | 
			
		||||
        <properties>
 | 
			
		||||
          <gpg.passphrase>${env.MAVEN_GPG_PASSPHRASE}</gpg.passphrase>
 | 
			
		||||
        </properties>
 | 
			
		||||
      </profile>
 | 
			
		||||
    <profiles>
 | 
			
		||||
    <server>
 | 
			
		||||
      <id>gpg.passphrase</id>
 | 
			
		||||
      <passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
 | 
			
		||||
    </server>
 | 
			
		||||
</servers>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -157,17 +157,11 @@ describe('auth tests', () => {
 | 
			
		|||
          <username>\${env.${username}}</username>
 | 
			
		||||
          <password>\${env.&<>"''"><&}</password>
 | 
			
		||||
        </server>
 | 
			
		||||
        <server>
 | 
			
		||||
          <id>gpg.passphrase</id>
 | 
			
		||||
          <passphrase>\${env.${gpgPassphrase}}</passphrase>
 | 
			
		||||
        </server>
 | 
			
		||||
      </servers>
 | 
			
		||||
      <profiles>
 | 
			
		||||
        <profile>
 | 
			
		||||
          <activation>
 | 
			
		||||
            <activeByDefault>true</activeByDefault>
 | 
			
		||||
          </activation>
 | 
			
		||||
          <properties>
 | 
			
		||||
            <gpg.passphrase>\${env.${gpgPassphrase}}</gpg.passphrase>
 | 
			
		||||
          </properties>
 | 
			
		||||
        </profile>
 | 
			
		||||
      </profiles>
 | 
			
		||||
  </settings>
 | 
			
		||||
  `);
 | 
			
		||||
  });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										14
									
								
								dist/index.js
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								dist/index.js
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -2928,17 +2928,11 @@ function generate(id = exports.DEFAULT_ID, username = exports.DEFAULT_USERNAME,
 | 
			
		|||
          <username>\${env.${escapeXML(username)}}</username>
 | 
			
		||||
          <password>\${env.${escapeXML(password)}}</password>
 | 
			
		||||
        </server>
 | 
			
		||||
        <server>
 | 
			
		||||
          <id>gpg.passphrase</id>
 | 
			
		||||
          <passphrase>\${env.${escapeXML(gpgPassphrase)}}</passphrase>
 | 
			
		||||
        </server>
 | 
			
		||||
      </servers>
 | 
			
		||||
      <profiles>
 | 
			
		||||
        <profile>
 | 
			
		||||
          <activation>
 | 
			
		||||
            <activeByDefault>true</activeByDefault>
 | 
			
		||||
          </activation>
 | 
			
		||||
          <properties>
 | 
			
		||||
            <gpg.passphrase>\${env.${escapeXML(gpgPassphrase)}}</gpg.passphrase>
 | 
			
		||||
          </properties>
 | 
			
		||||
        </profile>
 | 
			
		||||
      </profiles>
 | 
			
		||||
  </settings>
 | 
			
		||||
  `;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										14
									
								
								src/auth.ts
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								src/auth.ts
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -82,17 +82,11 @@ export function generate(
 | 
			
		|||
          <username>\${env.${escapeXML(username)}}</username>
 | 
			
		||||
          <password>\${env.${escapeXML(password)}}</password>
 | 
			
		||||
        </server>
 | 
			
		||||
        <server>
 | 
			
		||||
          <id>gpg.passphrase</id>
 | 
			
		||||
          <passphrase>\${env.${escapeXML(gpgPassphrase)}}</passphrase>
 | 
			
		||||
        </server>
 | 
			
		||||
      </servers>
 | 
			
		||||
      <profiles>
 | 
			
		||||
        <profile>
 | 
			
		||||
          <activation>
 | 
			
		||||
            <activeByDefault>true</activeByDefault>
 | 
			
		||||
          </activation>
 | 
			
		||||
          <properties>
 | 
			
		||||
            <gpg.passphrase>\${env.${escapeXML(gpgPassphrase)}}</gpg.passphrase>
 | 
			
		||||
          </properties>
 | 
			
		||||
        </profile>
 | 
			
		||||
      </profiles>
 | 
			
		||||
  </settings>
 | 
			
		||||
  `;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue