Skip to content

Commit

Permalink
Change token validation to only skip on Minotaur repo
Browse files Browse the repository at this point in the history
  • Loading branch information
triphora committed Jan 20, 2023
1 parent 7eb2a26 commit 6925e5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/modrinth/minotaur/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ static File resolveFile(Project project, Object in) {
* @param project Gradle project
*/
static void validateToken(Project project) throws IOException {
if (System.getenv("GITHUB_ACTIONS") != null) {
String repo = System.getenv("GITHUB_ACTION_REPOSITORY");
if (repo.contains("minotaur")) {
project.getLogger().info("Skipping token validation (GitHub repo {})", repo);
return;
}

Expand Down

0 comments on commit 6925e5b

Please sign in to comment.