granted
LOW
maintainer lmartinez-mirror
0 votes
scanned 2026-09-07 03:13:17.703764
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
2
# Contributor: Fantix King <fantix.king@gmail.com>
3
4
pkgname=granted
5
pkgver=0.39.0
6
pkgrel=1
7
pkgdesc="CLI tool that simplifies access to cloud roles in your web browser"
8
arch=(x86_64 i686 aarch64)
9
url="https://github.com/fwdcloudsec/granted"
10
license=(MIT)
11
depends=(glibc)
12
makedepends=(go)
13
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
14
sha256sums=('6f9a4b38ffac2da32d7f6c5d225aca2f799d1f74aadd3783a873ff5d98b94144')
15
16
prepare() {
17
cd "$pkgname-$pkgver"
18
export GOPATH="$srcdir"
19
go mod download -modcacherw
20
}
21
22
build() {
23
export CGO_CPPFLAGS="${CPPFLAGS}"
24
export CGO_CFLAGS="${CFLAGS}"
25
export CGO_CXXFLAGS="${CXXFLAGS}"
26
export CGO_LDFLAGS="${LDFLAGS}"
27
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
28
29
cd "$pkgname-$pkgver"
30
go build -o granted ./cmd/granted/main.go
31
}
32
33
package() {
34
cd "$pkgname-$pkgver"
35
install -Dm755 granted scripts/assume -t "$pkgdir/usr/bin/"
36
ln -sf /usr/bin/granted "$pkgdir/usr/bin/assumego"
37
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
38
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
39
}
40
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-07 03:13:17 | Low | 1 |