Skip to content

Commit

Permalink
Merge pull request #93 from cisagov/improvement/get-rid-of-python-war…
Browse files Browse the repository at this point in the history
…ning

Get rid of Python warning about use of deprecated function
  • Loading branch information
jsf9k authored Nov 28, 2023
2 parents 58d1067 + 25c8d24 commit 2a79d9e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ expects the secrets in a different location.
To run the `cisagov/pshtt_reporter` image via Docker:

```console
docker run cisagov/pshtt_reporter:1.2.14
docker run cisagov/pshtt_reporter:1.2.15
```

### Running with Docker Compose ###
Expand All @@ -43,7 +43,7 @@ docker run cisagov/pshtt_reporter:1.2.14

services:
pshtt_reporter:
image: cisagov/pshtt_reporter:1.2.14
image: cisagov/pshtt_reporter:1.2.15
volumes:
- type: bind
source: <your_log_dir>
Expand Down Expand Up @@ -89,7 +89,7 @@ environment variables. See the
services:
pshtt_reporter:
image: cisagov/pshtt_reporter:1.2.14
image: cisagov/pshtt_reporter:1.2.15
volumes:
- type: bind
source: <your_log_dir>
Expand Down Expand Up @@ -126,7 +126,7 @@ environment variables. See the
1. Pull the new image:

```console
docker pull cisagov/pshtt_reporter:1.2.14
docker pull cisagov/pshtt_reporter:1.2.15
```

1. Recreate and run the container by following the [previous instructions](#running-with-docker).
Expand All @@ -136,11 +136,11 @@ environment variables. See the
The images of this container are tagged with [semantic
versions](https://semver.org) of the underlying example project that they
containerize. It is recommended that most users use a version tag (e.g.
`:1.2.14`).
`:1.2.15`).

| Image:tag | Description |
|-----------|-------------|
|`cisagov/pshtt_reporter:1.2.14`| An exact release version. |
|`cisagov/pshtt_reporter:1.2.15`| An exact release version. |
|`cisagov/pshtt_reporter:1.2`| The most recent release matching the major and minor version numbers. |
|`cisagov/pshtt_reporter:1`| The most recent release matching the major version number. |
|`cisagov/pshtt_reporter:edge` | The most recent image built from a merge into the `develop` branch of this repository. |
Expand Down Expand Up @@ -204,7 +204,7 @@ Build the image locally using this git repository as the [build context](https:/

```console
docker build \
--tag cisagov/pshtt_reporter:1.2.14 \
--tag cisagov/pshtt_reporter:1.2.15 \
https://github.com/cisagov/pshtt_reporter.git#develop
```

Expand Down Expand Up @@ -235,7 +235,7 @@ Docker:
--file Dockerfile-x \
--platform linux/amd64 \
--output type=docker \
--tag cisagov/pshtt_reporter:1.2.14 .
--tag cisagov/pshtt_reporter:1.2.15 .
```

## Contributing ##
Expand Down
4 changes: 2 additions & 2 deletions src/report/generate_https_scan_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Standard Python Libraries
import codecs
import csv
from datetime import datetime
from datetime import datetime, timezone
import json
import os
import shutil
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(self, db, agency, debug=False):
self.__agency = agency
self.__agency_id = None
self.__debug = debug
self.__generated_time = datetime.utcnow()
self.__generated_time = datetime.now(timezone.utc)
self.__results = dict() # reusable query results
self.__requests = None
self.__report_doc = {"scores": []}
Expand Down
2 changes: 1 addition & 1 deletion src/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.2.14"
__version__ = "1.2.15"

0 comments on commit 2a79d9e

Please sign in to comment.