Skip to content

Commit

Permalink
fix tokens usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ericLemanissier committed May 15, 2023
1 parent 1254177 commit 545406e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ permissions:
contents: write

env:
GITHUB_TOKEN: ${{ secrets.issue_github_token }}
CONAN_SYSREQUIRES_MODE: enabled
PYTHONUNBUFFERED: 1

Expand Down Expand Up @@ -98,7 +97,7 @@ jobs:
- name: Clone CCI
run: |
git clone https://${{ github.repository_owner }}:$GITHUB_TOKEN@github.com/${{ github.repository_owner }}/conan-center-index.git
git clone https://qchateau:${{ secrets.issue_github_token }}@github.com/conan-center-bot-testing/conan-center-index.git
cd conan-center-index
git remote add upstream https://github.com/conan-io/conan-center-index.git
git fetch upstream
Expand All @@ -111,7 +110,7 @@ jobs:
mkdir status
conan-center-bot auto-update-recipes \
--cci conan-center-index \
--github-token "$GITHUB_TOKEN" \
--github-token "${{ secrets.issue_github_token }}" \
--push-to origin \
--branch-prefix dev/ccb-
> ./status/v1-update.json
Expand All @@ -121,7 +120,7 @@ jobs:
run: |
conan-center-bot update-status-issue \
--no-link-pr \
--github-token "$GITHUB_TOKEN" \
--github-token "${{ secrets.issue_github_token }}" \
./status/v1-update.json \
https://github.com/${{ github.repository }}/issues/4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ env.GITHUB_TOKEN }}
branch: status
folder: status
target-folder: prod
Expand Down

0 comments on commit 545406e

Please sign in to comment.