Skip to content

Commit

Permalink
Merge pull request #2078 from tweag/cg/use_action_for_gh_api_auth
Browse files Browse the repository at this point in the history
chore: use `extractions/netrc` to configure GitHub API authentication
  • Loading branch information
mergify[bot] authored Dec 12, 2023
2 parents 652db49 + 8c2e50f commit b833391
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 27 deletions.
21 changes: 0 additions & 21 deletions .github/actions/authenticate_github_api/action.yaml

This file was deleted.

15 changes: 9 additions & 6 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
bazelrc_path: .bazelrc.auth
- uses: ./.github/actions/set_tcp_keepalive_time
- uses: ./.github/actions/authenticate_github_api
- uses: extractions/netrc@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
machine: api.github.com
password: ${{ secrets.GITHUB_TOKEN }}
- name: Configure
run: |
cat >>.bazelrc.local <<EOF
Expand Down Expand Up @@ -79,9 +80,10 @@ jobs:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
bazelrc_path: .bazelrc.auth
- uses: ./.github/actions/set_tcp_keepalive_time
- uses: ./.github/actions/authenticate_github_api
- uses: extractions/netrc@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
machine: api.github.com
password: ${{ secrets.GITHUB_TOKEN }}
- name: Configure
run: |
case ${{ runner.os }} in
Expand Down Expand Up @@ -181,9 +183,10 @@ jobs:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
bazelrc_path: .bazelrc.auth
- uses: ./.github/actions/set_tcp_keepalive_time
- uses: ./.github/actions/authenticate_github_api
- uses: extractions/netrc@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
machine: api.github.com
password: ${{ secrets.GITHUB_TOKEN }}
- name: Configure
shell: bash
run: |
Expand Down

0 comments on commit b833391

Please sign in to comment.