Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
469df03
feat: add support for value interpolation in conditions
Hallian Nov 15, 2017
0a00d6a
refactor: make sure evaluate works with falsey values
Jan 2, 2018
fc27eab
refactor: remove explicit return for undefined
Jan 3, 2018
90c12c5
Merge pull request #1 from granodigital/feature/GE-1256-support-false…
miikaah Jan 3, 2018
573a038
chore: [security] update deps
villelahdenvuo Jul 28, 2021
6a2f3fc
Merge branch 'master' of https://github.com/monken/node-pbac
grano-mattiad Mar 11, 2022
1ecd43b
chore: add tests for grano changes
grano-mattiad Mar 11, 2022
0f18bc6
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Apr 2, 2022
29e3e5d
Merge pull request #3 from granodigital/dependabot/npm_and_yarn/minim…
villelahdenvuo Apr 4, 2022
b9a6ed5
Bump trim from 0.0.1 to
dependabot[bot] Apr 19, 2023
521bd52
Merge pull request #4 from granodigital/dependabot/npm_and_yarn/trim-…
villelahdenvuo Apr 24, 2023
0103403
Merge branch 'master' of github.com:monken/node-pbac
villelahdenvuo May 31, 2024
9ff5f9d
chore: Update packages, add debug logging
villelahdenvuo Jun 10, 2024
e017624
ci: add semantic release to github package registry
villelahdenvuo Sep 5, 2024
7227b8b
ci: enable release
villelahdenvuo Sep 5, 2024
f964a1b
ci: fix repo info
villelahdenvuo Sep 5, 2024
4fc9400
ci: fix permissions
villelahdenvuo Sep 5, 2024
170b7d7
fix: release stuff
villelahdenvuo Sep 5, 2024
b4bf653
fix: package scope
villelahdenvuo Sep 5, 2024
cfd6ed4
chore: remove unused environment variable
hassinenmika Sep 27, 2024
c499db4
Bump serialize-javascript and mocha
dependabot[bot] Feb 18, 2025
89ddfdd
Merge pull request #5 from granodigital/dependabot/npm_and_yarn/multi…
dependabot[bot] Feb 24, 2025
499788e
Bump validator from 13.12.0 to 13.15.20
dependabot[bot] Oct 28, 2025
bcdb1ea
Merge pull request #6 from granodigital/dependabot/npm_and_yarn/valid…
granojaakko Nov 6, 2025
0b931d5
Bump js-yaml from 4.1.0 to 4.1.1
dependabot[bot] Nov 15, 2025
26a2b84
Merge pull request #7 from granodigital/dependabot/npm_and_yarn/js-ya…
dependabot[bot] Nov 19, 2025
d188491
Bump validator from 13.15.20 to 13.15.23
dependabot[bot] Dec 2, 2025
5db9294
Merge pull request #8 from granodigital/dependabot/npm_and_yarn/valid…
granojaakko Dec 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release

on:
# TODO: Enable once we are using our helpers to filter releases.
# pull_request:
push:
branches:
- master
- develop # for pre-releases

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
packages: write # duh...
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# TODO: Use our own helpers see
# https://github.com/granodigital/grano-cas-client/blob/master/.github/workflows/test-and-publish.yml
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
registry-url: https://npm.pkg.github.com/
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ build/Release
node_modules

.idea
.DS_Store
10 changes: 10 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
branches:
- master
- name: develop
channel: beta
prerelease: true
parserOpts:
noteKeywords:
- BREAKING CHANGE
- BREAKING CHANGES
- BREAKING
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"cSpell.words": [
"Boolish",
"doctoc",
"grano",
"granodigital",
"ipcheck",
"monken",
"Moritz",
"Onken",
"pbac"
],
"editor.formatOnSave": false
}
4 changes: 2 additions & 2 deletions conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ const conditions = {
},
BinaryEquals(a, b) {
if (!isString(b) || !(a instanceof Buffer)) return false;
return a.equals(new Buffer(b, 'base64'));
return a.equals(Buffer.from(b, 'base64'));
},
BinaryNotEquals(a, b) {
if (!isString(b) || !(a instanceof Buffer)) return false;
return !a.equals(new Buffer(b, 'base64'));
return !a.equals(Buffer.from(b, 'base64'));
},
ArnLike: function ArnLike(a, b) {
if (!isString(b)) return false;
Expand Down
Loading