workflows: invalidate cachix cache
Since it was previously possible, in theory, to extract the CACHIX_AUTH_TOKEN via Nix eval on untrusted inputs, this rotates the token and clears the cache - and while on it moves to a new cache, that is owned by a newly created nixpkgs-ci org instead of an individual.
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -18,7 +18,7 @@ on:
|
|||||||
secrets:
|
secrets:
|
||||||
# Should only be provided in the merge queue, not in pull requests,
|
# Should only be provided in the merge queue, not in pull requests,
|
||||||
# where we're evaluating untrusted code.
|
# where we're evaluating untrusted code.
|
||||||
CACHIX_AUTH_TOKEN:
|
CACHIX_AUTH_TOKEN_GHA:
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
@@ -69,10 +69,10 @@ jobs:
|
|||||||
|
|
||||||
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
||||||
with:
|
with:
|
||||||
# The nixpkgs-ci cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
# The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
||||||
name: ${{ vars.CACHIX_NAME || 'nixpkgs-ci' }}
|
name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }}
|
||||||
extraPullNames: nixpkgs-ci
|
extraPullNames: nixpkgs-gha
|
||||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
pushFilter: '(-source$|-nixpkgs-tarball-)'
|
pushFilter: '(-source$|-nixpkgs-tarball-)'
|
||||||
|
|
||||||
- run: nix-env --install -f nixpkgs/trusted-pinned -A nix-build-uncached
|
- run: nix-env --install -f nixpkgs/trusted-pinned -A nix-build-uncached
|
||||||
|
|||||||
10
.github/workflows/check.yml
vendored
10
.github/workflows/check.yml
vendored
@@ -18,7 +18,7 @@ on:
|
|||||||
secrets:
|
secrets:
|
||||||
# Should only be provided in the merge queue, not in pull requests,
|
# Should only be provided in the merge queue, not in pull requests,
|
||||||
# where we're evaluating untrusted code.
|
# where we're evaluating untrusted code.
|
||||||
CACHIX_AUTH_TOKEN:
|
CACHIX_AUTH_TOKEN_GHA:
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
@@ -89,10 +89,10 @@ jobs:
|
|||||||
|
|
||||||
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
||||||
with:
|
with:
|
||||||
# The nixpkgs-ci cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
# The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
||||||
name: ${{ vars.CACHIX_NAME || 'nixpkgs-ci' }}
|
name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }}
|
||||||
extraPullNames: nixpkgs-ci
|
extraPullNames: nixpkgs-gha
|
||||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
pushFilter: -source$
|
pushFilter: -source$
|
||||||
|
|
||||||
- name: Build codeowners validator
|
- name: Build codeowners validator
|
||||||
|
|||||||
10
.github/workflows/eval.yml
vendored
10
.github/workflows/eval.yml
vendored
@@ -21,7 +21,7 @@ on:
|
|||||||
secrets:
|
secrets:
|
||||||
# Should only be provided in the merge queue, not in pull requests,
|
# Should only be provided in the merge queue, not in pull requests,
|
||||||
# where we're evaluating untrusted code.
|
# where we're evaluating untrusted code.
|
||||||
CACHIX_AUTH_TOKEN:
|
CACHIX_AUTH_TOKEN_GHA:
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
@@ -104,10 +104,10 @@ jobs:
|
|||||||
|
|
||||||
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
||||||
with:
|
with:
|
||||||
# The nixpkgs-ci cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
# The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
||||||
name: ${{ vars.CACHIX_NAME || 'nixpkgs-ci' }}
|
name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }}
|
||||||
extraPullNames: nixpkgs-ci
|
extraPullNames: nixpkgs-gha
|
||||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
pushFilter: '(-source|-single-chunk)$'
|
pushFilter: '(-source|-single-chunk)$'
|
||||||
|
|
||||||
- name: Evaluate the ${{ matrix.system }} output paths at the merge commit
|
- name: Evaluate the ${{ matrix.system }} output paths at the merge commit
|
||||||
|
|||||||
18
.github/workflows/lint.yml
vendored
18
.github/workflows/lint.yml
vendored
@@ -12,7 +12,7 @@ on:
|
|||||||
secrets:
|
secrets:
|
||||||
# Should only be provided in the merge queue, not in pull requests,
|
# Should only be provided in the merge queue, not in pull requests,
|
||||||
# where we're evaluating untrusted code.
|
# where we're evaluating untrusted code.
|
||||||
CACHIX_AUTH_TOKEN:
|
CACHIX_AUTH_TOKEN_GHA:
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
@@ -74,10 +74,10 @@ jobs:
|
|||||||
|
|
||||||
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
||||||
with:
|
with:
|
||||||
# The nixpkgs-ci cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
# The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
||||||
name: ${{ vars.CACHIX_NAME || 'nixpkgs-ci' }}
|
name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }}
|
||||||
extraPullNames: nixpkgs-ci
|
extraPullNames: nixpkgs-gha
|
||||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
pushFilter: -source$
|
pushFilter: -source$
|
||||||
|
|
||||||
- name: Parse all nix files
|
- name: Parse all nix files
|
||||||
@@ -103,10 +103,10 @@ jobs:
|
|||||||
|
|
||||||
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
|
||||||
with:
|
with:
|
||||||
# The nixpkgs-ci cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
# The nixpkgs-gha cache should not be trusted or used outside of Nixpkgs and its forks' CI.
|
||||||
name: ${{ vars.CACHIX_NAME || 'nixpkgs-ci' }}
|
name: ${{ vars.CACHIX_NAME || 'nixpkgs-gha' }}
|
||||||
extraPullNames: nixpkgs-ci
|
extraPullNames: nixpkgs-gha
|
||||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
pushFilter: -source$
|
pushFilter: -source$
|
||||||
|
|
||||||
- name: Running nixpkgs-vet
|
- name: Running nixpkgs-vet
|
||||||
|
|||||||
8
.github/workflows/merge-group.yml
vendored
8
.github/workflows/merge-group.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
|||||||
# cherry-picks; formality right now, but unused
|
# cherry-picks; formality right now, but unused
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
secrets:
|
secrets:
|
||||||
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
CACHIX_AUTH_TOKEN_GHA: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
with:
|
with:
|
||||||
mergedSha: ${{ needs.prepare.outputs.mergedSha }}
|
mergedSha: ${{ needs.prepare.outputs.mergedSha }}
|
||||||
targetSha: ${{ needs.prepare.outputs.targetSha }}
|
targetSha: ${{ needs.prepare.outputs.targetSha }}
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
needs: [prepare]
|
needs: [prepare]
|
||||||
uses: ./.github/workflows/lint.yml
|
uses: ./.github/workflows/lint.yml
|
||||||
secrets:
|
secrets:
|
||||||
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
CACHIX_AUTH_TOKEN_GHA: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
with:
|
with:
|
||||||
mergedSha: ${{ needs.prepare.outputs.mergedSha }}
|
mergedSha: ${{ needs.prepare.outputs.mergedSha }}
|
||||||
targetSha: ${{ needs.prepare.outputs.targetSha }}
|
targetSha: ${{ needs.prepare.outputs.targetSha }}
|
||||||
@@ -86,7 +86,7 @@ jobs:
|
|||||||
# compare
|
# compare
|
||||||
statuses: write
|
statuses: write
|
||||||
secrets:
|
secrets:
|
||||||
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
CACHIX_AUTH_TOKEN_GHA: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
with:
|
with:
|
||||||
artifact-prefix: ${{ inputs.artifact-prefix }}
|
artifact-prefix: ${{ inputs.artifact-prefix }}
|
||||||
mergedSha: ${{ needs.prepare.outputs.mergedSha }}
|
mergedSha: ${{ needs.prepare.outputs.mergedSha }}
|
||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
needs: [prepare]
|
needs: [prepare]
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
secrets:
|
secrets:
|
||||||
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
CACHIX_AUTH_TOKEN_GHA: ${{ secrets.CACHIX_AUTH_TOKEN_GHA }}
|
||||||
with:
|
with:
|
||||||
artifact-prefix: ${{ inputs.artifact-prefix }}
|
artifact-prefix: ${{ inputs.artifact-prefix }}
|
||||||
baseBranch: ${{ needs.prepare.outputs.baseBranch }}
|
baseBranch: ${{ needs.prepare.outputs.baseBranch }}
|
||||||
|
|||||||
Reference in New Issue
Block a user