question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not read username error.

See original GitHub issue

My github action is giving me the error.

image

name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Initiate repository
        uses: s4u/maven-settings-action@v2.1.0
        env:
          MAVEN_READ_URL: ${{ secrets.MAVEN_READ_URL }}
          MAVEN_SERVER_ID: ${{ secrets.MAVEN_SERVER_ID }}
          MAVEN_SERVER_PASSWORD: ${{ secrets.MAVEN_SERVER_PASSWORD }}
          MAVEN_SERVER_USERNAME: ${{ secrets.MAVEN_SERVER_USERNAME }}
        with:
          servers: '[{"id": "%MAVEN_SERVER_ID%", "username": "%MAVEN_SERVER_USERNAME%", "password": "%MAVEN_SERVER_PASSWORD%"}]'
          properties: '[{"myMavenRepo.read": "%MAVEN_READ_URL%"}]'

      - name: Set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8

      - name: Checkout repository
        uses: actions/checkout@v2
        with:
          path: main

      - name: Checkout private repository
        uses: actions/checkout@v2
        with:
          repository: MinecraftHouse/Ppom
          token: ${{ secrets.ACCESS_TOKEN }}
          path: ppom

#      - name: Build with Maven
#        run: mvn install -Dgpg.skip=true -B -ntp --file pom.xml --settings /home/runner/.m2/settings.xml

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
Zethsoncommented, Nov 7, 2020

@portlek Well, please keep it open for me 😃

0reactions
GiriRaj249commented, May 8, 2022

I don’t remember what was going on here but I solved my problem with a different way, this issue can close.

how did you get it solved ? can you explain it? i am getting same problem with my organization workflow

Read more comments on GitHub >

github_iconTop Results From Across the Web

fatal: could not read Username for 'https://github.com': No such ...
This is an issue with your stored credentials in the system credential cache. You probably have the config variable 'credential.helper' set to ...
Read more >
Fatal: Could not read Username for "https://github.com", No ...
Hello! Today I was doing the setup of a git automation inside a Docker container using hub and I ran into something that...
Read more >
Fixing could not read Username for 'https://github.com'
This stores the user name and password into ~/.git-credentials and is supposed to let you push to an HTTPS Git URL without entering...
Read more >
Git failed with a fatal error. fatal: could not read Username for...
Receiving this error when clicking the Sync link in Team Explorer. This has been working fine several times today, and then suddenly stopped...
Read more >
Sometimes builds fail due to fatal: could not read Username ...
Hi In 1 out of 10 builds I get the following error: Cloning with 0 retries Initialized empty Git repository in /drone/src/.git/ +...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found