Use github token from context not secret

This commit is contained in:
Ana Hobden 2023-02-01 10:51:24 -08:00
parent d5491adf01
commit cfd70f567b
2 changed files with 0 additions and 10 deletions

View file

@ -17,7 +17,6 @@ jobs:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: echo $PATH
run: echo $PATH
- name: Test `nix` with `$GITHUB_PATH`
@ -42,7 +41,6 @@ jobs:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Test `nix` with `$GITHUB_PATH`
if: success() || failure()
run: |
@ -57,7 +55,6 @@ jobs:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
reinstall: true
- name: Test `nix` with `$GITHUB_PATH`
if: success() || failure()
@ -79,7 +76,6 @@ jobs:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: echo $PATH
run: echo $PATH
- name: Test `nix` with `$GITHUB_PATH`
@ -108,7 +104,6 @@ jobs:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Test `nix` with `$GITHUB_PATH`
if: success() || failure()
run: |
@ -123,7 +118,6 @@ jobs:
logger: pretty
log-directives: nix_installer=trace
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
reinstall: true
- name: Test `nix` with `$GITHUB_PATH`
if: success() || failure()

View file

@ -16,10 +16,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
# Allow the installed Nix to make authenticated Github requests.
# If you skip this, you will likely get rate limited.
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run `nix build`
run: nix build .
```