elastic / elastic-serverless-forwarder

Elastic Serverless Forwarder
Other
35 stars 34 forks source link

security: add permissions block to workflows #625

Closed reakaleek closed 6 months ago

reakaleek commented 6 months ago

Details

⚠️ This PR was created by an automated tool. Please review the changes carefully. ⚠️

We want to set the default permissions for workflows to read-only for contents. This is a security measure to prevent accidental changes to the repository.

This change adds a top-level permissions block to all workflows in the .github/workflows directory.

permissions:
  contents: read

In some cases workflows might need more permissions than just contents: read. Please checkout this branch and add the necessary permissions to the workflows.

If your workflow uses a Personal Access Token (PAT), we can still add the permissions block, but it will not have any effect.

Merging this PR as is might cause workflows that need more permissions to fail.

If there are any questions, please reach out to the @elastic/observablt-ci

github-actions[bot] commented 6 months ago

File Coverage Lines Branches Missing
All files 100% 100% 100% :white_check_mark:
main_aws.py 100% 100% 100% :white_check_mark:
handlers/__init__.py 100% 100% 100% :white_check_mark:
handlers/aws/__init__.py 100% 100% 100% :white_check_mark:
handlers/aws/cloudwatch_logs_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/exceptions.py 100% 100% 100% :white_check_mark:
handlers/aws/handler.py 100% 100% 100% :white_check_mark:
handlers/aws/kinesis_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/replay_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/s3_sqs_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/sqs_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/utils.py 100% 100% 100% :white_check_mark:
share/__init__.py 100% 100% 100% :white_check_mark:
share/config.py 100% 100% 100% :white_check_mark:
share/environment.py 100% 100% 100% :white_check_mark:
share/events.py 100% 100% 100% :white_check_mark:
share/expand_event_list_from_field.py 100% 100% 100% :white_check_mark:
share/factory.py 100% 100% 100% :white_check_mark:
share/include_exlude.py 100% 100% 100% :white_check_mark:
share/json.py 100% 100% 100% :white_check_mark:
share/logger.py 100% 100% 100% :white_check_mark:
share/multiline.py 100% 100% 100% :white_check_mark:
share/secretsmanager.py 100% 100% 100% :white_check_mark:
share/utils.py 100% 100% 100% :white_check_mark:
share/version.py 100% 100% 100% :white_check_mark:
shippers/__init__.py 100% 100% 100% :white_check_mark:
shippers/composite.py 100% 100% 100% :white_check_mark:
shippers/es.py 100% 100% 100% :white_check_mark:
shippers/factory.py 100% 100% 100% :white_check_mark:
shippers/logstash.py 100% 100% 100% :white_check_mark:
shippers/shipper.py 100% 100% 100% :white_check_mark:
storage/__init__.py 100% 100% 100% :white_check_mark:
storage/decorator.py 100% 100% 100% :white_check_mark:
storage/factory.py 100% 100% 100% :white_check_mark:
storage/payload.py 100% 100% 100% :white_check_mark:
storage/s3.py 100% 100% 100% :white_check_mark:
storage/storage.py 100% 100% 100% :white_check_mark:

Minimum allowed coverage is 100%

Generated by :monkey: cobertura-action against a0e7cfe394dad285759844ee33d8ad04ff8ea62f