Commit Graph

1850 Commits (a2beb46f35ea070b483c61e2bc94e66ba97c440e)

Author SHA1 Message Date
Ming Fang a2beb46f35 Add extra blank line to make pre-commit happy. 2024-09-25 11:53:29 -04:00
Ming Fang 12ada44a63 Add trailing comma expected by the pre-commit hook. 2024-09-24 17:10:24 -04:00
Ming Fang 6299ff9b38 Add v21 test for GranularMarking to close #586. 2024-09-20 15:55:55 -04:00
Ming Fang d2d7161fb5 Fix issue #586. 2024-09-20 15:55:36 -04:00
Rich Piazza fa8c95bba7 flaky2 2024-08-20 11:07:13 -04:00
Rich Piazza 249b2db6d3 flaky 2024-08-20 09:30:59 -04:00
Rich Piazza 33455bd3bc deterministic-id-checker 2024-08-19 15:45:28 -04:00
Rich Piazza 50fd81fd6b
Merge pull request #595 from clenk/fix-codecov
Prevent codecov workflow errors
2024-04-15 17:19:34 -04:00
Chris Lenk 647987dfa6 Prevent codecov workflow errors 2024-04-15 17:11:28 -04:00
Rich Piazza 74873aadc0
Merge pull request #587 from oasis-open/upgrade-python
Upgrade python
2024-03-18 10:00:03 -04:00
Rich Piazza 4a3f99f251 update isort to 5.12 2024-03-18 09:57:59 -04:00
Rich Piazza 4f0e1d205a fiux test-environments - weights changed 2024-03-16 13:53:34 -04:00
Rich Piazza 9f70e6860e fix workflows python versions 2024-03-14 16:53:31 -04:00
Rich Piazza f5ae9798f8 update python versions to 3.8-3.12 2024-03-14 16:46:07 -04:00
Rich Piazza 7d7104a786
Update README.rst
remove Duncan from maintainers, added Rich
2023-11-28 11:47:56 -05:00
OASIS-OP-Admin f1c1632f3a
fixing i-cla links 2023-06-06 13:51:34 -04:00
Emily Ratliff 2860699f19
Merge pull request #559 from clenk/fix-docs-build
Fix failing docs build
2022-10-17 13:12:16 -05:00
Chris Lenk 585ade563c Fix a couple links in the docs 2022-10-17 11:54:09 -04:00
Chris Lenk 8c29b12fa1 Update docs dependencies
Fixes issues with doc builds failing.
2022-10-17 11:53:28 -04:00
Emily Ratliff 20bef319a2
Merge pull request #553 from jweissm/test_harness
Test harness update
2022-08-02 10:54:59 -05:00
Emily Ratliff 56396119e6
Merge pull request #542 from chisholm/fix_detect_spec_version
Fix detect_spec_version() with respect to 2.0 bundles
2022-08-02 10:54:10 -05:00
Emily Ratliff dd3a3a0315
Merge pull request #551 from oasis-open/update-maintainers
Update maintainers list
2022-08-01 11:19:04 -05:00
Joshua Weiss aab27b6559
Update python-ci-tests.yml 2022-08-01 09:48:21 -04:00
jweissm 07dddd1ac1 added python 3.10 to test harness removed 3.6 2022-07-29 07:22:46 -07:00
Chris Lenk 3ab3a9c33f Update maintainers list 2022-07-13 15:10:48 -04:00
Chris Lenk aac27374b3
Merge pull request #545 from chisholm/complete_pattern_visitor
Complete pattern visitor
2022-05-02 11:00:34 -04:00
Michael Chisholm 3dba3f74f9 Fix more pre-commit style issues. 2022-04-28 21:39:59 -04:00
Michael Chisholm 724122db65 pre-commit styling changes 2022-04-28 21:23:05 -04:00
Michael Chisholm e534e41865 Complete the addition of AST node class override support which
was begun by frank7y.  Added some unit tests.

Also address a design flaw which prevented the AST builder
function create_pattern_object() from honoring module_suffix
and module_name parameters after the first call.
2022-04-28 21:10:12 -04:00
Michael Chisholm b5260c95f6 Fix utils.detect_spec_version() to use presence of the
spec_version property in a bundle to infer spec version, not
the property's value.  Update unit tests accordingly.
2022-02-18 21:33:13 -05:00
francescosettanni 1e4b6caf3f improved pattern visitor support of custom classes 2022-01-31 10:48:01 +01:00
Chris Lenk 17445a085c
Merge pull request #534 from chisholm/fix_comp_expr_dnf_sco_type_check
Fix pattern semantic equivalence comparison expression DNF transformer bug
2021-12-23 16:36:26 -05:00
Michael Chisholm 3086b7ab5b Fix pattern semantic equivalence bug: comparison expression
DNF transform could trigger an error from the AST code which
does the SCO type checks on comparison expression ANDs.  The
transform had been ignoring SCO types.  Now, it will catch
the exception and drop the AND from the pattern.  Added a
couple new unit tests for this.
2021-12-23 00:59:41 -05:00
Chris Lenk 81550cab92 Bump version: 3.0.0 → 3.0.1 2021-09-24 09:34:37 -04:00
Chris Lenk f5ea1396a1 Update CHANGELOG for v3.0.1 2021-09-24 09:33:40 -04:00
Rich Piazza 34128d17b8
Merge pull request #528 from chisholm/fix_taxii_filters
Fix transformation from Filter object to TAXII filter
2021-09-10 09:14:16 -04:00
Rich Piazza 585e76e909
Merge pull request #529 from emmanvg/documentation-update
Minor documentation update
2021-09-09 16:33:33 -04:00
Emmanuelle Vargas-Gonzalez 87d79445dc update maintainers 2021-08-30 20:59:08 -04:00
Emmanuelle Vargas-Gonzalez 66535bb550 update README.rst 2021-08-30 20:58:21 -04:00
Michael Chisholm 659e1fd90d Fix transform from Filter object to TAXII filter to look at
the filter operator; TAXII filters only support equals.
2021-08-26 20:55:35 -04:00
Rich Piazza e64d23d1dd
Merge pull request #526 from chisholm/fix_taxii20_datasource
Fix TAXIICollectionSource.query() to propagate HTTPErrors
2021-08-24 15:07:53 -04:00
Michael Chisholm a4ce0222bf Move and edit a comment about HTTP status code 416 to reduce
confusion.
2021-08-24 15:04:05 -04:00
Michael Chisholm a3d1056122 Fix TAXIICollectionSource.query() to propagate HTTPErrors
instead of ignoring them.  Special-cased 416, since that can
occur naturally while paging with TAXII 2.0.
2021-08-24 00:15:50 -04:00
chisholm 6e7e9dd832
Merge pull request #513 from maybe-sybr/fix/all-refs-are-identifiers-or-quack-alike
improv: Check reference prop types for all customs
2021-07-22 19:09:57 -04:00
maybe-sybr bd897c9848 improv: Check reference prop types for all customs
Previously the requirement that properties ending in `_ref(s)` were
instances of an appropriate type capable of containing a STIX
`identifier` (the current interpretation of section 3.1 of the STIX 2.1
spec) was only enforced for custom observables. This change refactors
the property checks for custom objects to enforce this and the STIX 2.1
property name requirement (also from section 3.1) in a common helper,
therefore extending the enforcement of both requirements to all custom
object types created by downstream projects.

There is a special case carved out for STIX 2.0 observables which are
required to contain "object references" rather than identifiers. This
special logic is encoded in the reference property validation helper and
enabled by a kwarg which is passed exclusively by the custom observable
registration helper.
2021-07-22 14:55:14 +10:00
Rich Piazza 9c209edb1d updated CHANGELOG 2021-07-13 14:23:40 -04:00
Rich Piazza 31b8892681 doc version fixes 2021-07-13 12:38:01 -04:00
Rich Piazza eaf578ff5c
Merge pull request #521 from oasis-open/fix-custom-markings
Fix custom markings
2021-07-12 16:23:49 -04:00
Rich Piazza 3150cdece9
Merge pull request #520 from oasis-open/issue-518
Fix the CustomExtension example in the custom.ipynb jupyter notebook.
2021-07-12 16:23:12 -04:00
Michael Chisholm 295037f92c Fix parsing.ipynb to not mention SCOs "inside" observed-data
SDOs anymore.  That is no longer the case in STIX 2.1.
2021-07-12 16:16:29 -04:00