Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-introduce security scanning in repos #4185

Merged
merged 3 commits into from
Jun 22, 2023

Conversation

dms1981
Copy link
Contributor

@dms1981 dms1981 commented Jun 9, 2023

We removed security scanning inhttps://github.com//pull/2795

From reading the linked issue, this was resolved in integrations/terraform-provider-github#1489

This PR removes the version pin and allows us to stay up-to-date without relying on dependabot PRs, as well as reintroducing the security_and_analysis block in our code.

edit: update -
For public repositories the advanced security setting is always set and can't be applied,
so making the block conditional and only there for non public repos.

https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository#advanced_security

@dms1981 dms1981 requested a review from a team as a code owner June 9, 2023 14:56
@dms1981
Copy link
Contributor Author

dms1981 commented Jun 9, 2023

NB. This PR should solve issue #2822

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2023

TFSEC Scan Success

Show Output
*****************************

TFSEC will check the following folders:

Checkov Scan Success

Show Output
*****************************

Checkov will check the following folders:

CTFLint Scan Success

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing `terraform` plugin...
Installed `terraform` (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.2.1)
tflint will check the following folders:

@github-actions
Copy link
Contributor

TFSEC Scan Success

Show Output
*****************************

TFSEC will check the following folders:

Checkov Scan Success

Show Output
*****************************

Checkov will check the following folders:

CTFLint Scan Success

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing `terraform` plugin...
Installed `terraform` (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.2.1)
tflint will check the following folders:

For public repositories this setting is always set and can't be applied,
so making the block conditional and only there for non public repos.

https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository#advanced_security
@github-actions
Copy link
Contributor

TFSEC Scan Success

Show Output
*****************************

TFSEC will check the following folders:

Checkov Scan Success

Show Output
*****************************

Checkov will check the following folders:

CTFLint Scan Success

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing `terraform` plugin...
Installed `terraform` (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.2.1)
tflint will check the following folders:

Copy link
Contributor Author

@dms1981 dms1981 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@davidkelliott davidkelliott merged commit 5995dd6 into main Jun 22, 2023
11 checks passed
@davidkelliott davidkelliott deleted the feature/reintroduce-security-scanning branch June 22, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants