From 12185e19134621d18dddf6775c3de82c2015a393 Mon Sep 17 00:00:00 2001 From: Hiroki OTA Date: Fri, 29 Mar 2024 16:05:15 +0900 Subject: [PATCH] ci: add set git config to resolve when ansible-galaxy-requirements has private repository (#4578) * ci: add generate token and set git config to resolve when ansible-galaxy-requirements has private repo Signed-off-by: h-ohta * add only set git config Signed-off-by: h-ohta --------- Signed-off-by: h-ohta --- .github/workflows/pre-commit-ansible.yaml | 5 +++++ .github/workflows/setup-universe.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/pre-commit-ansible.yaml b/.github/workflows/pre-commit-ansible.yaml index 2de37e26ef9..dd023cbd265 100644 --- a/.github/workflows/pre-commit-ansible.yaml +++ b/.github/workflows/pre-commit-ansible.yaml @@ -10,6 +10,11 @@ jobs: - name: Check out repository uses: actions/checkout@v4 + - name: Set git config + uses: autowarefoundation/autoware-github-actions/set-git-config@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Install Ansible Galaxy depends for ansible-lint run: | ansible-galaxy collection install -f -r ansible-galaxy-requirements.yaml diff --git a/.github/workflows/setup-universe.yaml b/.github/workflows/setup-universe.yaml index 5840c359d52..ef39011aca8 100644 --- a/.github/workflows/setup-universe.yaml +++ b/.github/workflows/setup-universe.yaml @@ -10,6 +10,11 @@ jobs: - name: Check out repository uses: actions/checkout@v4 + - name: Set git config + uses: autowarefoundation/autoware-github-actions/set-git-config@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Run setup script run: | ./setup-dev-env.sh -y -v universe