Skip to content

Commit

Permalink
bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jan 21, 2025
1 parent 0fc464d commit 8d7bef9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 34 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/pushes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ permissions:
on:
push:
branches-ignore:
- 'exp'
- 'exp/*'
- 'exp-*'
- 'exp_*'
- 'wip'
- 'wip/*'
- 'wip-*'
- 'wip_*'
- "exp"
- "exp/*"
- "exp-*"
- "exp_*"
- "wip"
- "wip/*"
- "wip-*"
- "wip_*"
pull_request:

jobs:
Expand All @@ -38,13 +38,13 @@ jobs:
# The canonical entry is the only one where we run vet/lint/style checks.
# `experimental: true` entries do not cause the tests to fail.
include:
- go: 'stable'
- go: "stable"
os: ubuntu-latest
canonical: true
- go: 'stable'
- go: "stable"
os: windows-latest
canonical: false
- go: 'stable'
- go: "stable"
os: macos-latest
canonical: false

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
# From 2.7.6 onwards, we use the vX.Y.Z tag naming pattern.
# Before then, we used non-version tags.
# Going forward, for new releases, we only need to support v.
- 'v[0-9]*'
- "v[0-9]*"

permissions:
# Control the GITHUB_TOKEN permissions; GitHub's docs on which permission scopes control what are a little lacking.
Expand All @@ -21,7 +21,6 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -36,7 +35,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: "1.21"
check-latest: true

- name: Install cosign
Expand Down
13 changes: 13 additions & 0 deletions cmd/reissueaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func createReissueAccountCmd() *cobra.Command {
Example: `nsc reissue account`,
Args: MaxArgs(0),
SilenceUsage: false,
Hidden: true,
RunE: func(cmd *cobra.Command, args []string) error {
if err := RunMaybeStorelessAction(cmd, args, &params); err != nil {
return err
Expand Down Expand Up @@ -82,6 +83,18 @@ func (p *reissueAccount) Run(ctx ActionCtx) (store.Status, error) {
ks := ctx.StoreCtx().KeyStore
accounts, err := s.ListSubContainers(store.Accounts)

// maybe filter to the account name provided
if ctx.CurrentCmd().Flags().Changed("account") {
var buf []string
name := ctx.StoreCtx().Account.Name
for _, n := range accounts {
if n == name {
buf = append(buf, n)
}
}
accounts = buf
}

if err != nil {
return nil, err
}
Expand Down
40 changes: 20 additions & 20 deletions dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

This file lists the dependencies used in this repository.

| Dependency | License |
|----------------------------------------------------------|-----------------------------------------|
| go | BSD 3-Clause "New" or "Revised" License |
| github.com/blang/semver | MIT |
| github.com/briandowns/spinner | Apache-2.0 |
| github.com/dustin/go-humanize | MIT |
| github.com/mitchellh/go-homedir | MIT |
| github.com/nats-io/cliprompts/v2 | Apache-2.0 |
| github.com/nats-io/jsm.go | Apache-2.0 |
| github.com/nats-io/jwt/v2 | Apache-2.0 |
| github.com/nats-io/nats-server/v2 | Apache-2.0 |
| github.com/nats-io/nats.go | Apache-2.0 |
| github.com/nats-io/nkeys | Apache-2.0 |
| github.com/nats-io/nuid | Apache-2.0 |
| github.com/rhysd/go-github-selfupdate/selfupdate | MIT |
| github.com/spf13/cobra | Apache-2.0 |
| github.com/spf13/pflag | BSD-3-Clause |
| github.com/stretchr/testify | MIT |
| github.com/xlab/tablewriter | Apache-2.0 |
| golang.org/x/text | BSD-3-Clause |
| Dependency | License |
| ------------------------------------------------ | --------------------------------------- |
| go | BSD 3-Clause "New" or "Revised" License |
| github.com/blang/semver | MIT |
| github.com/briandowns/spinner | Apache-2.0 |
| github.com/dustin/go-humanize | MIT |
| github.com/mitchellh/go-homedir | MIT |
| github.com/nats-io/cliprompts/v2 | Apache-2.0 |
| github.com/nats-io/jsm.go | Apache-2.0 |
| github.com/nats-io/jwt/v2 | Apache-2.0 |
| github.com/nats-io/nats-server/v2 | Apache-2.0 |
| github.com/nats-io/nats.go | Apache-2.0 |
| github.com/nats-io/nkeys | Apache-2.0 |
| github.com/nats-io/nuid | Apache-2.0 |
| github.com/rhysd/go-github-selfupdate/selfupdate | MIT |
| github.com/spf13/cobra | Apache-2.0 |
| github.com/spf13/pflag | BSD-3-Clause |
| github.com/stretchr/testify | MIT |
| github.com/xlab/tablewriter | Apache-2.0 |
| golang.org/x/text | BSD-3-Clause |

0 comments on commit 8d7bef9

Please sign in to comment.