-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
62 lines (59 loc) · 1.88 KB
/
action.yml
File metadata and controls
62 lines (59 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: "Himitsu CI"
description: "Self-serve SOPS-based secrets recipient management"
branding:
icon: "lock"
color: "purple"
inputs:
operation:
description: "Operation to run: ci | sync | add-recipient | rm-recipient | codegen"
required: true
default: "ci"
recipient-name:
description: "Recipient label (for add-recipient / rm-recipient)"
required: false
recipient-key:
description: "Public key value (for add-recipient)"
required: false
recipient-type:
description: "Key type: age | ssh | gpg (default: age)"
required: false
default: "age"
group:
description: "Target recipient group"
required: false
default: "team"
sops-age-key:
description: "Age secret key for decryption (pass from repo secret)"
required: false
himitsu-dir:
description: "Path to himitsu directory relative to repo root"
required: false
default: ".meta/himitsu"
auto-commit:
description: "Automatically commit changes (true/false)"
required: false
default: "true"
github-token:
description: "GitHub token for collaborator lookups and commits"
required: false
default: ${{ github.token }}
runs:
using: "composite"
steps:
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Run Himitsu
shell: bash
run: bash ${{ github.action_path }}/action/entrypoint.sh
env:
HIMITSU_OP: ${{ inputs.operation }}
HIMITSU_DIR: ${{ inputs.himitsu-dir }}
HIMITSU_RECIPIENT_NAME: ${{ inputs.recipient-name }}
HIMITSU_RECIPIENT_KEY: ${{ inputs.recipient-key }}
HIMITSU_RECIPIENT_TYPE: ${{ inputs.recipient-type }}
HIMITSU_GROUP: ${{ inputs.group }}
HIMITSU_AUTO_COMMIT: ${{ inputs.auto-commit }}
SOPS_AGE_KEY: ${{ inputs.sops-age-key }}
GH_TOKEN: ${{ inputs.github-token }}