Skip to content

Commit

Permalink
fix: use gh-cli instead of hub (kedacore#3025)
Browse files Browse the repository at this point in the history
* use gh-cli instead of hub

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>

* use same go-version in fossa than others

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
  • Loading branch information
Jorge Turrado Ferrero authored May 9, 2022
1 parent e026250 commit dcf5866
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "^1.17"
go-version: 1.17
- run: go version
# Runs a set of commands to initialize and analyze with FOSSA
- name: run FOSSA analysis
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: checkout
run: |
hub pr checkout ${{ needs.triage.outputs.pr_num }}
gh pr checkout ${{ needs.triage.outputs.pr_num }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: checkout
run: |
hub pr checkout ${{ needs.triage.outputs.pr_num }}
gh pr checkout ${{ needs.triage.outputs.pr_num }}
- name: Run end to end tests
continue-on-error: true
Expand Down
9 changes: 5 additions & 4 deletions tools/build-tools.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ ENV PATH=${PATH}:/usr/local/go/bin \
# Install FOSSA tooling
RUN curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash

# Install hub
RUN curl -LJO https://github.com/github/hub/releases/download/v2.14.2/hub-linux-amd64-2.14.2.tgz && \
tar zxvf hub-linux-amd64-2.14.2.tgz
ENV PATH="/hub-linux-amd64-2.14.2/bin:${PATH}"
# Install gh
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
apt update && \
apt install -y gh

0 comments on commit dcf5866

Please sign in to comment.