ci: use github app
This commit is contained in:
parent
bc64202040
commit
b940df6af7
3 changed files with 18 additions and 6 deletions
17
.github/workflows/check.yaml
vendored
17
.github/workflows/check.yaml
vendored
|
|
@ -16,11 +16,24 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Generate GitHub App Token
|
||||||
|
id: generate-token
|
||||||
|
uses: actions/create-github-app-token@v1
|
||||||
|
with:
|
||||||
|
app_id: ${{ vars.APP_ID }}
|
||||||
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
repositories:
|
||||||
|
|
||||||
|
- name: Setup Git Config
|
||||||
|
run: |
|
||||||
|
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "git+ssh://git@github.com/"
|
||||||
|
|
||||||
- name: Setup Nix
|
- name: Setup Nix
|
||||||
uses: DeterminateSystems/nix-installer-action@main
|
uses: DeterminateSystems/nix-installer-action@main
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.KUNZEN_TOKEN }}
|
|
||||||
- name: Magic Nix Cache
|
- name: Magic Nix Cache
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
|
|
||||||
- name: Nix Flake
|
- name: Nix Flake
|
||||||
run: nix flake check
|
run: nix flake check
|
||||||
|
|
|
||||||
4
flake.lock
generated
4
flake.lock
generated
|
|
@ -3093,11 +3093,11 @@
|
||||||
"rev": "dbbf390c798a14bb316681e62fe56355d9ea88f6",
|
"rev": "dbbf390c798a14bb316681e62fe56355d9ea88f6",
|
||||||
"revCount": 4,
|
"revCount": 4,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git@github.com/ooks-io/kunzen"
|
"url": "ssh://git@github.com/ooks-io/kunzen"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git@github.com/ooks-io/kunzen"
|
"url": "ssh://git@github.com/ooks-io/kunzen"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
secrets = {
|
secrets = {
|
||||||
url = "git+https://git@github.com/ooks-io/kunzen";
|
url = "git+ssh://git@github.com/ooks-io/kunzen";
|
||||||
allRefs = true;
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
flake-parts.follows = "flake-parts";
|
flake-parts.follows = "flake-parts";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue