Skip to content

Gunner27/sentinel-github-actions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sentinel GitHub Actions

These Sentinel GitHub Actions allow you to run sentinel test and fmt on your pull requests to help you review and validate Sentinel policy changes.

The recommended workflow for using these actions is in the Terraform Enterprise Sentinel VCS docs. tfe-policies-example includes an example of using these actions in practice.

Example

workflow "Sentinel" {
  resolves = ["sentinel-test", "sentinel-fmt"]
  on = "pull_request"
}

action "sentinel-test" {
  uses = "hashicorp/sentinel-github-actions/test@master"
  secrets = ["GITHUB_TOKEN"]
  env = {
    STL_ACTION_WORKING_DIR = "."
  }
}

action "sentinel-fmt" {
  uses = "hashicorp/sentinel-github-actions/fmt@v0.1"
  secrets = ["GITHUB_TOKEN"]
  env = {
    TF_ACTION_WORKING_DIR = "."
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 62.3%
  • Dockerfile 37.7%