(app App, entity SecretEntity)
| 84 | } |
| 85 | |
| 86 | func IsSupportedSecretEntity(app App, entity SecretEntity) bool { |
| 87 | switch app { |
| 88 | case Actions: |
| 89 | return entity == Repository || entity == Organization || entity == Environment |
| 90 | case Agents: |
| 91 | return entity == Repository || entity == Organization |
| 92 | case Codespaces: |
| 93 | return entity == User || entity == Organization || entity == Repository |
| 94 | case Dependabot: |
| 95 | return entity == Repository || entity == Organization |
| 96 | default: |
| 97 | return false |
| 98 | } |
| 99 | } |
no outgoing calls