Skip to content

Commit c089813

Browse files
committed
fix: GitHub Token for the Action
1 parent 6fbb977 commit c089813

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ branding:
99
inputs:
1010
token:
1111
description: GitHub Token
12+
default: ${{ secrets.GITHUB_TOKEN }}
1213
extractors:
1314
description: GitHub Repository where the extractor(s) is located
1415
required: true

src/action.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub const AUTHORS: &str = env!("CARGO_PKG_AUTHORS");
3232
)]
3333
pub struct Action {
3434
/// GitHub Token
35-
#[input(description = "GitHub Token")]
35+
#[input(description = "GitHub Token", default = "${{ secrets.GITHUB_TOKEN }}")]
3636
token: String,
3737

3838
/// GitHub Repository where the extractor is located

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ async fn main() -> Result<()> {
5656
let extractor_path = PathBuf::from("./extractors");
5757
if !extractor_path.exists() {
5858
std::fs::create_dir(&extractor_path)
59-
.with_context(|| format!("Failed to create directory {:?}", extractor_path))?;
60-
info!("Created Extractor Directory :: {:?}", extractor_path);
59+
.with_context(|| format!("Failed to create directory {extractor_path:?}"))?;
60+
info!("Created Extractor Directory :: {extractor_path:?}");
6161
}
6262

6363
let mut extractors: Vec<(CodeQLExtractor, RepositoryReference)> = Vec::new();

0 commit comments

Comments
 (0)