Skip to content

Commit

Permalink
Update comment -- the methods should still be thread-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
evankanderson committed Nov 29, 2023
1 parent 5cfdca3 commit 7a05066
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/ghactions/ghactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package ghactions provides functions to process action references and
// replace tags for checksums in GitHub Actions workflows. The functions
// in this package are NOT thread-safe; for a given FS, only one thread
// should update/scan the workflow configurations at a time.
// Package ghactions provides functions to locate action references and
// replace tags for checksums in GitHub Actions workflows.
package ghactions

import (
Expand Down Expand Up @@ -179,7 +177,6 @@ func setOfActions(node *yaml.Node) (mapset.Set[Action], error) {

// ListActionsInYAML returns a list of actions referenced in the given YAML structure.
func ListActionsInYAML(node *yaml.Node) ([]Action, error) {
// just convert the set to a slice
actions, err := setOfActions(node)
if err != nil {
return nil, err
Expand Down

0 comments on commit 7a05066

Please sign in to comment.