Git Product home page Git Product logo

sdgswift's People

Contributors

sdggiesbrecht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sdgswift's Issues

[Security] Workflow Windows.yaml is using vulnerable action actions/checkout

The workflow Windows.yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

[Security] Workflow iOS.yaml is using vulnerable action actions/checkout

The workflow iOS.yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

programatically generate mock packages

is there a way to programmatically mock up packages? meaning i would like to generate some package which depends on another (local repository) package, for symbol inspection purposes. then i could swift run it to dump out the imported symbols, and feed that into my codegen system.

real-package/
    Package.swift 
    Sources/
        my-library-module/
            definitions.swift

mock-package/
    Package.swift
    Sources/
        inspector/
            main.swift
// real-package/Sources/my-library-module/definitions.swift 

enum Foo 
{
    static 
    let types:[MyProtocol.Type] = [Bar.self, Baz.self]
}
// mock-package/Sources/inspector/main.swift 

@testable import MyLibraryModule

for type:MyProtocol.Type in Foo.types 
{
    print("\(type)")
    ...
}
// mock-package/Package.swift 
// swift-tools-version: ...

let package ....

    dependencies: 
    [
        .package(path: "../real-package")
    ]
    ...

ideally, i would generate mock-package/Sources/inspector/main.swift as a String from swift, and possibly generate mock-package/Package.swift as a typed PackageDescription.Package (or less ideally, a String), and then have SDGSwift generate the mock package and run the inspector target.

maybe, it would look like this:

let inspectorSource:String = generateInspectorSource()

let mockPackage:<???> = .init(products: [.executable(targets: ["inspector"])], 
    dependencies: [.package(path: "../real-package")], 
    targets: 
    [
        .executableTarget("inspector", sources: [inspectorSource]) // the source file contents, not a file path!
    ])

mockPackage.run("inspector")

[Security] Workflow Amazon Linux.yaml is using vulnerable action actions/checkout

The workflow Amazon Linux.yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

[Security] Workflow Miscellaneous.yaml is using vulnerable action actions/checkout

The workflow Miscellaneous.yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

[Security] Workflow Ubuntu.yaml is using vulnerable action actions/checkout

The workflow Ubuntu.yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

[Security] Workflow Android (Swift 5.3).yaml is using vulnerable action actions/checkout

The workflow Android (Swift 5.3).yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

[Security] Workflow CentOS.yaml is using vulnerable action actions/checkout

The workflow CentOS.yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

llvm-cov Output to Cobertura XML

Question

I've noticed that you've posted a few messages over in the Swift forums discussing Swift code coverage.

In one of them you even hint about this library being able to work directly with the JSON output from llvm-cov.

I'm interested in writing a utility to parse the JSON (or some other Swift code coverage artifact from llvm-cov) and convert it to Cobertura XML for use in my GitLab CI pipelines.

I'm interested in how one might use TestCoverageReport, if at all, to interpret the output from llvm-cov. In your opinion could you see a way to use the modules/types in this package provide a path to achieving the goal I have?

Documentation Suggestion

The subject matter is a little dense here. Some guiding examples on how one might make use of some of the modules/types.

[Security] Workflow Windows (Swift 5.3).yaml is using vulnerable action actions/checkout

The workflow Windows (Swift 5.3).yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

[Security] Workflow Android.yaml is using vulnerable action actions/checkout

The workflow Android.yaml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.