GithubHelp home page GithubHelp logo

kpcyrd / archlinux-inputs-fsck Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 2.0 165 KB

Lint repository of PKGBUILDs for cryptographically pinned inputs

License: GNU General Public License v3.0

Rust 100.00%

archlinux-inputs-fsck's Introduction

Hi! ๐Ÿ‘‹

I'm an open-source developer with a background in offensive security, web security, computer networks and supply-chain security.

๐Ÿ› ๏ธ Offensive Security Tools

๐Ÿšข Supply-Chain Security Tools

๐Ÿ‘พ Memory-safe Firmware

๐ŸŒ Network Tools

๐Ÿ“‘ Documentation

๐Ÿšฉ Capture The Flag

๐Ÿ“ฆ Packaging

I package software in the official repositories of multiple Linux distributions:

๐Ÿ’ฒ Funding

All my open-source work is currently funded by myself and donations from Github Sponsors.

๐Ÿ“ซ Contacting

You can find me as kpcyrd on irc (hackint, libera, oftc, overthewire), Twitter DM to @kpcyrd or DM kpcyrd on cncf slack. I read my emails infrequently.

archlinux-inputs-fsck's People

Contributors

kpcyrd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

isgasho kursh

archlinux-inputs-fsck's Issues

Recognise tags pinned by their object hash instead of their name as secure

archlinux-inputs-fsck currently only recognises Git sources pinned by a commit hash as secure. However as outlined in a recent arch-dev-public mailing list post, pinning the SHA-1 hash of the tag object is as secure as pinning the commit ID:

_tag=1234567890123456789012345678901234567890 # git rev-parse "$tag_name"
source=("git+$url?signed#tag=$_tag")

Therefore is_commit_securely_pinned() should distinguish the case when the tag "name" is a 40-digit hex ID and return true in this case.

Is it possible to use it on an AUR package repo

Helo!

It's probably me that don't understand something. I try to run archlinux-inputs-fsck on a little aur package I maintian, and it fails with the following errors.

     Running `target/release/archlinux-inputs-fsck check --all -W ./urxvt-font-size-git/`
[2022-11-06T18:15:14Z INFO  archlinux_inputs_fsck] Checking "PKGBUILD"
[2022-11-06T18:15:14Z INFO  archlinux_inputs_fsck] Checking "urxvt-font-size.install"
[2022-11-06T18:15:14Z INFO  archlinux_inputs_fsck] Checking ".SRCINFO"
[2022-11-06T18:15:14Z INFO  archlinux_inputs_fsck] Checking ".gitignore"
[2022-11-06T18:15:14Z ERROR archlinux_inputs_fsck] Failed to check package: ".gitignore" => Failed to run bash: Not a directory (os error 20)
[2022-11-06T18:15:14Z ERROR archlinux_inputs_fsck] Failed to check package: "PKGBUILD" => Failed to run bash: Not a directory (os error 20)
[2022-11-06T18:15:14Z ERROR archlinux_inputs_fsck] Failed to check package: ".SRCINFO" => Failed to run bash: Not a directory (os error 20)
[2022-11-06T18:15:14Z ERROR archlinux_inputs_fsck] Failed to check package: "urxvt-font-size.install" => Failed to run bash: Not a directory (os error 20)
archlinux-inputs-fsck (main โ—) $ 

I'm wondering if it's failing, because it assumes two layers of folder (e.g.: svntogit-community/package-name/PKGBUILD), while this one has only one layer package-name/PKGBUILD? If you have the answer on the top of your head, it'd be nice to know, otherwise I'll try to check the code and find out when I have time. :)

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.